Custom Buddypress Permalink and Members URL Slugs

Customizing the buddypress slug can be done without any code update. Do it simply by changing the slug of page which is selected for Members field in Buddypress settings.

Customizing the buddypress slug can be done without any code update. First for clarity purpose, what I am talking here is changing the the base buddypress slug like :
http://www.fiazhuysn.com/members/fiazhusyn/  to http://www.fiazhusyn.com/ninja/fiazhusyn/

‘members’ is the default slug for a buddypress installation, Buddypress generates this using following method:

  • First it checks for slug of page which is selected for ‘Members’ field under directories at /wp-admin/admin.php?page=bp-page-settings , You can change the slug of this page to change slug of buddypress profile slugs.
  • If there is no page defined than it falls back to default slug which is ‘members’

So to change the buddypress slug,

  1. Create a new page. For example create a page by the title of “Ninjas” (its slug will be ninjas) and publish it.
  2. Go to yourwebite.com/wp-admin/admin.php?page=bp-page-settings and select this page as ‘Members’ page.

Your buddypress slug will now be slug of this new page, which in our case was ninjas.

Another Method

Another method of changing the slug is to define the constant ‘BP_MEMBERS_SLUG’ in wp-config.php file. You can define it like:

 

  • Prob

    sorry didn’t work 🙁