Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Change Defualt Tab for Sitewide Activity

I tried this code:

‘function redirect_to_friends() {
global $bp;

$path = clean_url( $_SERVER );

$path = apply_filters( ‘bp_uri’, $path );

if ( bp_is_directory())
bp_core_redirect( $path . $bp->bp_options_nav . ‘/’ );
}
add_action( ‘wp’, ‘redirect_to_friends’ );’

And I think I am close because it is trying to redirect me every time I am on my activity page, but I keep getting a 404 error and my displayed url is: http://www.mydomain.com/ActivityArray

Any idea where I am going wrong in the code?

Skip to toolbar