Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_the_author_posts [ WordPress Function ]

get_the_author_posts ( No parameters )
Uses:
Returns:
  • (int) The number of posts by the author.
Defined at:



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

Source


<?php
function get_the_author_posts() {
    global 
$post;
    return 
count_user_posts($post->post_author);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics