WordPress作者文章数量标签:the_author_posts

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

相关函数:

阿里云