How To Customise Your BuddyPress URL

24.02.10 by Jerome in SEO, Tutorials

How To Customise Your BuddyPress URL

After the arrival of BuddyPress version 1.2, I have been immersing myself in it as much as possible. I have started working on a few BuddyPress projects and for the next few weeks I will share some of my discoveries and learnings by posting some tutorials and tips.

By customising your URL there are benefits for the users. It allows for SEO oppurtunities as the URL keywords are more relevant to a search.
For example, if you are creating a community website around an University, it would make more sense to customise the URL to fit the University need. For example-on the member page to replace “members” to “students”. See below:

domain.com/members/jerome to domain.com/students/jerome

Simply create a bp-custom.php file under wp-content –> plugins and paste the php code below:

<?php
define( 'BP_MEMBERS_SLUG', 'students' );
?>

Here some other samples of slugs that you can change:

<?php
define ( 'BP_ACTIVITY_SLUG', 'activity' );
define ( 'BP_BLOGS_SLUG', 'journals' );
define ( 'BP_FRIENDS_SLUG', 'peeps' );
define ( 'BP_GROUPS_SLUG', 'classes' );
define ( 'BP_MESSAGES_SLUG', 'notes' );
define ( 'BP_WIRE_SLUG', 'board' );
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' );
?>

Related posts:

buddypress, SEO, slug, url

Get More Wordpress Tips & Tricks

Liked this post? subscribe to our email updates or RSS feed!

  • Juan Manuel
    Will this make any trouble with some plugins or it's just the way de urls are displayed to the user?
    Thanks! Great article!
  • Thanks Juan, it won't conflict with any plugins.
  • Juan Manuel
    Hi again, despite what we talked about, I had to delete the bp-custom.php file, since it did not worked fine with the bp-album+ plugin.

    I customized the slug /members/ changing it to "racers" but the link on the pictures were still using the old slug, "members".

    So, when clicking on a picture, I got a 404 error :(
  • I didn't test this plugin yet, look to be a bug. You should post your issue on the bp-album plugin forum http://wordpress.org/tags/bp-album?forum_id=10 or have a go on the BuddyPress forum.
  • Juan Manuel
    Thanks a lot for your help!
  • Juan Manuel
    Great! Thanks so much for this tip ;)
blog comments powered by Disqus