WordPress模板函数the_author_posts输出当前作者发表的文章总数,不包含草稿、私密文章,必须用在The Loop主循环中。
the_author_posts()
函数使用示例
<p><?php the_author(); ?> 共发表了 <?php the_author_posts(); ?> 篇文章</p>
扩展阅读
the_author_posts()函数位于:wp-includes/author-template.php
WordPress模板函数the_author_posts输出当前作者发表的文章总数,不包含草稿、私密文章,必须用在The Loop主循环中。
the_author_posts()
<p><?php the_author(); ?> 共发表了 <?php the_author_posts(); ?> 篇文章</p>
the_author_posts()函数位于:wp-includes/author-template.php
之前