wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_the_author_posts › WordPress Function

Desde1.5.0
Obsoleton/a
get_the_author_posts ( Sem parâmetros )
Retorna:
  • (int) The number of posts by the author.
Definido em:
Codex:

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



Fonte

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