get_the_author_posts(): int

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

Return

int The number of posts by the author.

Source

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

Changelog

VersionDescription
1.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.