Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: The groups loop and group meta


Sven Lehnert
Participant

@svenl77

I have the same problem,
I have added a group metadata “featured” to have featured groups displayed separately. It’s just a checkbox. All is working, but now I stuck, how to filter the metadata in bp_has_groups().

https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-groups-loop/

At the moment I check it in the loop, but this is realy dirty

if(groups_get_groupmeta( bp_get_group_id(), ‘bp_featured_group’ ) == ‘Featured’):

wold be great to know how you have done this.
Did you build a function groups_get_groups? If yes, would be great if you could share it here ;-)

Skip to toolbar