Both bp_has_members() and bp_has_groups() now accept ‘exclude’ parameters. They accept a comma-separated string of group ids. bp_has_blogs() does not have an exclude parameter; feel free to open an enhancement ticket on trac.buddypress.org for this.
What we need is excludes in the activity loop and multiple params:
Excluding forum replies and comments from xx group
@modemlooper Yeah, that would be nice, but it’s much more complicated. Open a ticket and we can start patching
What would be nice is to be able to run multiple loops without the last overriding the previous loop parameters, but wondering now if multiple loops is actually logical.
You can run as many loops as you want on a single page, as long as they’re separate. You can’t really run embedded loops (of the same content type). That’ll change when, down the road, we start using WP_Query for content loops.
need it now or at least need bp_reset()
So trying to run three separate bp_has_groups() is not possible on the same page as I’m finding, although starting to think that the approach is flawed to getting what’s required though.
@Boone
I’m a bit dense on the coding side…
What would the code be to exclude a single user by ID?
Thanks!