Codex tools: Log in / create account
Contents |
Returns the post count for the user whose ID is passed to it. Properties map directly to the wp_posts table in the database (see Database Description).
<?php get_usernumposts(userid); ?>
The call to get_usernumposts returns the number of posts made by the user.
<?php echo 'Posts made: ' . get_usernumposts(1); ?>