Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to create submenu containing BuddyPress tabs (editing header.php)?


bpisimone
Participant

@bpisimone

slightly different question here:

how can you combine the if statements for “selected”, like for example the activity and the members and the groups into one statement? I’m guessing something like else if, but I haven’t got it working so far…

<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?>

<?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?>

<?php if ( bp_is_page( BP_ACTIVITY_SLUG ) ) : ?>

Skip to toolbar