当前浏览:首页 / WordPress函数 / the_author_posts()

the_author_posts()

显示当前文章作者的文章数量

author 作者more...

postsmore...

themore...



源码

查看源码 官方文档


更新日志

版本描述
0.71开始引入

使用示例

  • 示例1

    基本示例
    显示作者的名称和文章数量。

    <p><?php the_author(); ?> has blogged <?php the_author_posts(); ?> 
    posts</p>
    

    输出是 “Harriett Smith has blogged 425 posts.”