Title: the_author_posts
Published: April 25, 2014
Last modified: May 20, 2026

---

# the_author_posts()

## In this article

 * [Source](https://developer.wordpress.org/reference/functions/the_author_posts/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/the_author_posts/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/the_author_posts/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/functions/the_author_posts/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/functions/the_author_posts/?output_format=md#wp--skip-link--target)

Displays the number of posts by the author of the current post.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/the_author_posts/?output_format=md#source)󠁿

    ```php
    function the_author_posts() {
    	echo get_the_author_posts();
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/author-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/author-template.php#L312)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/author-template.php#L312-L314)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/the_author_posts/?output_format=md#related)󠁿

| Uses | Description | 
| [get_the_author_posts()](https://developer.wordpress.org/reference/functions/get_the_author_posts/)`wp-includes/author-template.php` |

Retrieves the number of posts by the author of the current post.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/the_author_posts/?output_format=md#changelog)󠁿

| Version | Description | 
| [0.71](https://developer.wordpress.org/reference/since/0.71/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/functions/the_author_posts/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/functions/the_author_posts/?output_format=md#comment-content-1060)
 2.   [Codex](https://profiles.wordpress.org/codex/)  [  10 years ago  ](https://developer.wordpress.org/reference/functions/the_author_posts/#comment-1060)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fthe_author_posts%2F%23comment-1060)
    Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fthe_author_posts%2F%23comment-1060)
 4. **Basic Example**
     Displays the author’s name and number of posts.
 5.     ```php
        <p><?php the_author(); ?> has blogged <?php the_author_posts(); ?> 
        posts</p>
        ```
    
 6. Output is “Harriett Smith has blogged 425 posts.”
 7.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fthe_author_posts%2F%3Freplytocom%3D1060%23feedback-editor-1060)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fthe_author_posts%2F)
before being able to contribute a note or feedback.