Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,667
- How-to & Troubleshooting
- 127,979
- Creating & Extending
- 25,647
- Requests & Feedback
- 9,399
- Third Party Plugins
- 9,725
- Showcase
- 3,320
- Ideas
- 1,346
- Miscellaneous
- 8,853
-
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 ) ) : ?>
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS