步骤: 登录博客后台 -> 选择外观选项的编辑项。 选择index.php或其它你想修改的文件,选择合适位置进行函数调用。 然后回到首页刷新就OK了! 以下是调用代码: 文章:<?php $count_posts = wp_count_posts(); echo $published_posts = $count_posts->publish; ?> 篇 页面:<?php $count_p...