把index.html改名index.php,在需要显示标题的地方粘贴一下代码,记得修改代码里面的路径对应你的安装目录 ./blog/wp-blog-header.php (这表示安装在blog目录下)define('WP_USE_THEMES', false);require('./blog/wp-blog-header.php');query_posts('showposts=1');?>while (have_posts()): the_post();?>
Read more...