Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to put My Groups tab by default in the activity page.?¿?

  • Hello!
    I want to put by default the tab “My groups” in the activity page.
    I’ve tried it.
    I’,ve modified the file /wp-content/plugins/buddypress/bp-themes/bp-default/activity/index.php:

    <li id="activity-groups" class="selected">

    But it is not enough..

    any idea??

    thx!

    Sorry for my english, i’m spanish :).

Viewing 1 replies (of 1 total)

  • TimCarey
    Participant

    @timcarey

    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' );
    
Viewing 1 replies (of 1 total)
  • The topic ‘How to put My Groups tab by default in the activity page.?¿?’ is closed to new replies.
Skip to toolbar