Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,032
- How-to & Troubleshooting
- 129,672
- Creating & Extending
- 25,794
- Requests & Feedback
- 9,497
- Third Party Plugins
- 9,793
- Showcase
- 3,316
- Ideas
- 1,375
- Miscellaneous
- 9,181
-
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 ) ) : ?>