Skip to:
Content
Pages
Categories
Search
Top
Bottom

1.5 and Excluding from BP Loops

Viewing 7 replies - 1 through 7 (of 7 total)
  • Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    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.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

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

    Excluding forum replies and comments from xx group

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

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

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    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.

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    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.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

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

    Avatar of WebEndev
    WebEndev
    Participant

    @munman

    @Boone

    I’m a bit dense on the coding side…

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

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.