WordPress 中文文档
Function Reference/get usernumposts
From WordPress Chinese
目录 |
[编辑]
Description
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).
[编辑]
Usage
%%% <?php get_usernumposts(userid); ?> %%%
[编辑]
Example
[编辑]
Default Usage
The call to get_usernumposts returns the number of posts made by the user.
<?php echo('Posts made: ' . get_usernumposts(1)); ?>
Posts made: 143
[编辑]
