我有一个使用核心php设计的网站xyz.com。 我也有1个wordpress博客xyz.com/blog。 现在,我想在xyz.com/index.php上显示来自wordpress博客的4个博客文章摘录。
我尝试连接wordpress数据库(<?php include('blog/wp-config.php'); ?>
),并尝试从表中调用数据。
我有一个使用核心php设计的网站xyz.com。 我也有1个wordpress博客xyz.com/blog。 现在,我想在xyz.com/index.php上显示来自wordpress博客的4个博客文章摘录。
我尝试连接wordpress数据库(<?php include('blog/wp-config.php'); ?>
),并尝试从表中调用数据。