Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,955
- How-to & Troubleshooting
- 129,247
- Creating & Extending
- 25,784
- Requests & Feedback
- 9,473
- Third Party Plugins
- 9,782
- Showcase
- 3,317
- Ideas
- 1,401
- Miscellaneous
- 9,165
-
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