Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Listing Groups user is admin or moderator of

@djpaul

Keymaster

Retrieving groups based on current user’s role is a nice idea for a future enhancement for BuddyPress. Would you post such a ticket over on https://buddypress.trac.WordPress.org please? Use your username and password from this site.

Doesn’t look like there is a nice way of doing this. Checking with those functions after-the-fact will mess up any pagination you may use, or zebra striping, or things like that.

In your bp_has_groups(), be sure to set the ‘user_id’ parameter if you are doing this outside of the profile page area. This will limit the query to only groups that the specified member has joined. Then put something like this in your bp-custom.php file (not tested, but should point you in the right direction): http://pastebin.com/ceJgyWLT

Skip to toolbar