Skip to:
Content
Pages
Categories
Search
Top
Bottom

1.5 and Excluding from BP Loops

Viewing 7 replies - 1 through 7 (of 7 total)
  • Profile photo 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.

    Profile photo 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

    Profile photo 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 :)

    Profile photo 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.

    Profile photo 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.

    Profile photo 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.

    Profile photo 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)
  • The topic ‘1.5 and Excluding from BP Loops’ is closed to new replies.
Skip to toolbar