Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] How can I redirect to Forum Group instead of Home Group?

  • @david13_13

    Participant

    Hello.

    I want that when a user in my website click in a group, he will be redirect directly to Forum Group, not the home page of group.

    It’s possible?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • @modemlooper

    Moderator

    @david13_13

    Participant

    Thanks! But I’m getting a redirection loop 🙁

    @shanebp

    Moderator

    Try:

    function david_group_link_to_forum( $link ) {
         if( ! bp_is_group() ) 
              $link .= 'forum/';
    		
         return $link;
    }
    add_filter('bp_get_group_permalink', 'david_group_link_to_forum', 11, 1 );

    This should work on group links on the all Groups page.
    fyi – In activity stream, it works on group avatars, but not group names.

    @david13_13

    Participant

    Thanks a lot! It works nice! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] How can I redirect to Forum Group instead of Home Group?’ is closed to new replies.
Skip to toolbar