This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also
Use any of these functions
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); ?>
- (integer) (required) The ID of the user whose post count should be retrieved.
- Default: None
The call to get_usernumposts returns the number of posts made by the user.
<?php echo 'Posts made: ' . get_usernumposts(1); ?>
Posts made: 143
- Since: 0.71
- Deprecated: 3.0.0
get usernumposts() is located in