@dta_madrid
Active 10 years, 7 months ago
-
Henry Wright replied to the topic Display total number of contributors in the forum Installing BuddyPress 10 years, 7 months ago
Further to @shanebp‘s method, WordPress has a native function called
count_users()
which can be used to get the number of users in each role.https://codex.wordpress.org/Function_Reference/count_users
$users = count_users();
// display total users (if you want to).
echo $users['total_users'] . ' total users';// display count for…[Read more]