Once it’s running.
Started 8 months, 3 weeks ago by: Nahum
As I was working with getting set up on 1.5, I came across this old method referenced here http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-exclude-a-group-from-the-groups-loop/
Has there been anything added to address this? I’ve been looking to see if there would be a parameter to exclude by blog id/member idfor the blogs loop and members loop.
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!
Existing and new plugins/components and themes.
Show off your BuddyPress powered sites.
Problems with getting it running.
Discuss translating BuddyPress
Everything else.
Feature requests; criticism.
Post your add-ons here.
To start connecting please log in first.
Remember Me
Think you've found a bug with the software? Please report it here (use the same login credentials).