Inspiration For Creative Minds
Home » Labs » How to display total number of members on WordPress site  

Filed under Labs

Place below code in your WordPress template where you want to display the total number of members.

 
 
<?php
 
	$total_members = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->users");
	echo $total_members." Total Members.";
 
?>
It's only fair to share...Share on Google+Tweet about this on TwitterShare on Facebook
Labs

Posts you may like: