Skip to:
Content
Pages
Categories
Search
Top
Bottom

Linking directly to group sub-pages such as members, forum etc.


  • nigelanderson
    Member

    @nigelanderson

    When you click on a link to a group it takes you to the group home, normally the activity stream, with sub-headings to navigate to other group sub-pages, such as members, forum, admin etc.

    Is there a way to link directly to one of the sub-pages, eg to go directly to the forum for example?

    I’m talking about somehow embedding the target in the link so that you can link directly to various sub-pages from elsewhere in the site rather than a one-off permanent change of the ‘home’.

    Thanks!

Viewing 1 replies (of 1 total)

  • Virtuali
    Participant

    @gunju2221

    You can make the group’s default page being the Forum by adding this to your bp-custom.php:

    `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 ‘Linking directly to group sub-pages such as members, forum etc.’ is closed to new replies.
Skip to toolbar