您现在的位置是:首页 > 网站制作 > WordpressWordpress

WordPress函数the_author_posts()

杰帅2023-08-06【Wordpress】人已围观

简介the_author_posts() 显示作者已发布的文章数量,必须使用在 the_loop 中。

介绍

the_author_posts() 显示作者已发布的文章数量,必须使用在 the_loop 中。

使用

<?php the_author_posts(); ?>

示例

显示作者名称和已经发布的文章数量。

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

显示结果

Harriett Smith has blogged 425 posts.

参数

不接受任何传参。

Tags:wordpress函数   WordPress建站

很赞哦! ()

文章评论

本站推荐

站点信息

  • 建站时间:2018-10-24
  • 网站程序:帝国CMS7.5
  • 主题模板《今夕何夕》
  • 文章统计1172篇文章
  • 标签管理标签云
  • 统计数据百度统计
  • 微信公众号:扫描二维码,关注我们