Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

1.5 and Excluding from BP Loops (8 posts)

Started 8 months, 3 weeks ago by: Nahum

  • Profile picture of Nahum Nahum said 8 months, 3 weeks ago:

    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.

  • Profile picture of Boone Gorges Boone Gorges said 8 months, 3 weeks ago:

    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.

  • Profile picture of modemlooper modemlooper said 8 months, 3 weeks ago:

    What we need is excludes in the activity loop and multiple params:

    Excluding forum replies and comments from xx group

  • Profile picture of Boone Gorges Boone Gorges said 8 months, 3 weeks ago:

    @modemlooper Yeah, that would be nice, but it’s much more complicated. Open a ticket and we can start patching :)

  • Profile picture of Hugo Hugo said 8 months, 3 weeks ago:

    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.

  • Profile picture of Boone Gorges Boone Gorges said 8 months, 3 weeks ago:

    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.

  • Profile picture of Hugo Hugo said 8 months, 3 weeks ago:

    :) 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.

  • Profile picture of munman WebEndev said 8 months, 3 weeks ago:

    @Boone

    I’m a bit dense on the coding side…

    What would the code be to exclude a single user by ID?

    Thanks!