the_author_posts
AUTHOR TAG
What It Does
Displays the number of posts published by an author. Since the_author_posts counts only publicly published posts, private posts and drafts are not included in the count. the_author_posts must be used within The Loop.
Code
<?php the_author_posts(); ?>
Example
The following example will display the author’s first name along with the total number of posts the author has made:
<p><?php the_author_firstname(); ?> has written <?php the_author_posts(); ?> total posts</p>
Of course, the verbage surrounding the_author_posts can be changed to whatever you like.
For more information on displaying the author’s first name, see the_author_firstname




