Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Exclude members from the Members Loop?


r-a-y
Keymaster

@r-a-y

Right now, there is no “exclude” parameter in bp_has_members().

However you could filter certain members out with a little hackery. In the members loop, do a conditional to check the member’s username against something. If it matches, skip it.

eg.
if ( bp_get_member_user_login() == 'USERNAME_TO_CHECK' ) continue;

This would go right after bp_the_member() in the loop.

There is probably a better way, but for now try that.

Skip to toolbar