Skip to:
Content
Pages
Categories
Search
Top
Bottom

Changing BuddyPress Groups Slug


  • Cas Dekkers
    Participant

    @casdekkers

    Hi there,

    After I successfully altered all translations described in this guide, I now wish to alter the groups slug to something else.

    I think I am close. Changing the BP_GROUPS_SLUG is deprecated, so instead, I found that you can change the slug by uploading the following bp-custom.php file into the wp-content/plugins/ directory:

    <?php
    add_filter( 'bp_get_groups_root_slug', function() {
    	return 'teams';
    } );

    This changes the slug, but unfortunately also makes all group-related pages result in a 404.

    What do I do to fix this? Thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)

  • shanebp
    Moderator

    @shanebp

    Remove that code.
    Create a page called Teams.
    Go to wp-admin > Settings > BuddyPress > Pages
    Select the Teams page for the User Groups option and then Save
    Go to yoursite.com/teams/


    Cas Dekkers
    Participant

    @casdekkers

    Hi @shanebp,

    Thanks so much for your reply, this fixes my issue!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar