Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to get all Group nav items?


Boone Gorges
Keymaster

@boonebgorges

It looks like $bp->bp_options_nav[groups] is populated differently when you’re inside of the group loop than when you’re not. That’s probably at least in part because the optionsbar items are different for different groups (some don’t have the forum activated, for example) and even for different users (admins vs mods vs regular members). In any case, if you put your code inside of a group loop

if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group();

you might get what you’re looking for for each individual group.

Skip to toolbar