views:

41

answers:

1

At the official BuddyPress website http://buddypress.org/ They are running a single WordPress installation with BP. However for some of the pages they have prefixed them with /community/ for example: http://buddypress.org/community/members/ not all slugs have been prefixed for example http://buddypress.org/register/

Any ideas on how this has been done and can be recreated as a client is requesting a similar feature for a project. Thanks

A: 
Tumas
Pretty nasty way of doing it!
Cameron
Agreed. But for simple cases it works without much trouble.
Tumas
But I don't want to alter the permalink structure as I have it setup as /news/%category%/%postname%/
Cameron
Oh gosh, I messed things up. It seems that you don't have to update permalinks since they are applied to posts only? (fix me if I'm wrong) . So, if that's the case, you don't need to alter permalink structure. Only create page and a sub-page with specifed slugs.
Tumas
Doing that just gives me empty pages. How do I link the original buddypress pages to these new ones?
Cameron
Newly created pages are empty, yes. You need add content to them. Giving example of /community/members I wanted to show you how create these kind of url structures on your site. If you need to link newly created pages to buddypress you need to do some redirection. Possibly, by a plugin: http://wordpress.org/extend/plugins/quick-pagepost-redirect-plugin/
Tumas
Redirection is not what I'm after. I'm looking to rewrite the urls so all links auto use them like on the bp site.
Cameron
Can you explain a little bit more about what you're trying to achieve? If get this right, you want to create url structures in form of /parent/child on your site and enable your code to display links to those pages in some slug-independent way?
Tumas
No. I just want to add prefixes to the buddypress urls of my choosing like they have buddypress.org
Cameron