Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to Exclude a Group From the Groups Loop


Roger Coathup
Participant

@rogercoathup

@ch8rt – rather than write that long nested if structure, put your group names into an array, and then check if the bp_get_group_name is in that array, using the PHP in_array() function: http://php.net/manual/en/function.in-array.php

@pollyplummer – Yes, an exclude parameter would be very useful – it came up in another forum thread recently as well

Skip to toolbar