WordPress 主题、WordPress插件、UZIWP
您的购物车目前是空的!
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.
不接受任何传参。