Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,871
- Creating & Extending
- 25,902
- Requests & Feedback
- 9,548
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,178
-
Just found an even better way of getting the total. This will always match your loop count. e.g be correct even when member search has been used.
global $members_template;
$total = ( (int)$members_template->total_member_count / 2 );