Skip to:
Content
Pages
Categories
Search
Top
Bottom

Create Group Button from within Group Directory

  • Profile photo of Roland Fauster
    Roland Fauster
    Participant

    @rfauster

    Hi

    I found it strange, that members only get to create groups from within their Profile Navigation so I wanted to add a “Create Group” Button on the Group Directory Page but somehow, the bp_options_nav() does not work there.

    Anyone got a clue on how to do this since there is also no option like bp_create_group_button()?

    roland

Viewing 3 replies - 1 through 3 (of 3 total)
  • Profile photo of mlemberg
    mlemberg
    Participant

    @mlemberg

    I was actually looking for a way to do that as well, so I am very eager to see some responses.

    Profile photo of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    Try <a class="button" href="<?php echo bp_root_domain() . '/' . BP_GROUPS_SLUG . '/create/' ?>"><?php _e( 'Create a Group', 'buddypress' ) ?></a>. Make sure you wrap it in if ( is_user_logged_in() ) as bp_root_domain() will be empty for non-logged-in users

    Profile photo of David Lewis
    David Lewis
    Participant

    @takeo

    The new 1.2 theme does this too.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Create Group Button from within Group Directory’ is closed to new replies.