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.

	$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

Posts you may like: