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
-
Try this.
function redirect_to_forum() {
global $bp;
$path = clean_url( $_SERVER );
$path = apply_filters( 'bp_uri', $path );
if ( bp_is_group_home() && strpos( $path, $bp->bp_options_nav ) === false )
bp_core_redirect( $path . $bp->bp_options_nav . '/' );
}
add_action( 'wp', 'redirect_to_forum' );
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS