Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,871
- Creating & Extending
- 25,907
- Requests & Feedback
- 9,550
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,179
-
I solved the issue using changing the members-loop, adding:
<?php while ( bp_members() ) : bp_the_member();
$user = new WP_User( bp_get_member_user_id() );
if ( $user->roles[0] != 'pending' ) :
?>
I couldn’t get a solution trying to change the alphabetical sorting, but with this fix, I didn’t edit the sorting itself, but excluded the pending role from the members-loop altogether.