Customize the URL Slugs of BuddyPress Components

It’s very easy to change the slugs of BuddyPress components to match the needs of your site. For example, if you’d rather have http://yoursite.com/blogs be changed to http://yoursite.com/journals you can define the new slug in your wp-config.php file. You can customize all of them or just a few as needed. Here’s an example of custom slugs from the BuddyPress codex:

1
2
3
4
5
6
7
8
9
10
11
12
13
define ( 'BP_ACTIVITY_SLUG', 'streams' );
define ( 'BP_BLOGS_SLUG', 'journals' );
define ( 'BP_MEMBERS_SLUG', 'users' );
define ( 'BP_FRIENDS_SLUG', 'peeps' );
define ( 'BP_GROUPS_SLUG', 'gatherings' );
define ( 'BP_FORUMS_SLUG', 'discussions' );
define ( 'BP_MESSAGES_SLUG', 'notes' );
define ( 'BP_WIRE_SLUG', 'pinboard' );
define ( 'BP_XPROFILE_SLUG', 'info' );
define ( 'BP_REGISTER_SLUG', 'signup' );
define ( 'BP_ACTIVATION_SLUG', 'enable' );
define ( 'BP_SEARCH_SLUG', 'find' );
define ( 'BP_HOME_BLOG_SLUG', 'news' );

Comments (2)

  1. I’m having trouble with this. At most parts of my BP site, the links are just fine, pointing to the customized url slugs. Nevertheless, some still point to the ‘original’ slugs and give a 404 error instead of the page requested… What can be wrong?

    I did exactly as you said in your post, here’s an example URL:

    I changed ‘members’ per ‘skaters’ and ‘activity’ per ‘actividad’ :)

    Thanks so much! This is a great way to help usability on my site.

Participate