您的当前位置:首页 > 知识博客 > wordpress建站

WordPress作者文章数量标签:the_author_posts

时间:2024-03-16

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

相关函数:

  • the_author()

  • get_the_author()

  • get_the_author_id()

  • the_author_link()

  • get_the_author_link()

  • the_author_meta()

  • get_the_author_meta()

  • get_the_author_posts()

  • the_author_posts_link()

  • get_author_posts_url()

  • get_the_modified_author()

  • the_modified_author()

  • wp_dropdown_users()

  • wp_list_authors()


欢迎咨询/Welcome to inquire
tel/vx:18842938855
qq:1685522781
email:1685522781@qq.com

Copyright © 2019-2024 19.org.cn


Whatsapp
Powered by RRZCMS