If you want to display total number of users in your wordpress blog, just type this code anywhere in the template.
$users = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->users");
echo $users." registered users.";
![]() |
|
If you enjoyed this article, please consider sharing it!
Please Note: Comment Moderation Maybe Active So There is No Need To Resubmit Your Comments