get_the_author_posts()

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


Return

(int) The number of posts by the author.


Source

File: wp-includes/author-template.php

function get_the_author_posts() {
	$post = get_post();
	if ( ! $post ) {
		return 0;
	}
	return count_user_posts( $post->post_author, $post->post_type );
}


Changelog

Changelog
Version Description
WP-1.5.0 Introduced.