Skip to:

Need a custom permalink rule

  • Anointed


    I am importing my vbulletin forum into bbpress and all is working perfectly. I do have one request though.

    My old permalink structure is

    I had no problem getting the Community to replace the standard ‘forums’ in the admin panel.

    What I need help with is how to change the single post view url to the above scheme.

    Currently bbpress does

    I want to replace topics with the name of the forum the post is in, and if it’s a grandchild forum have it /forum-name/sub-forum-name/post-name.html

    any advice?

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

  • Anthony


    The only thing I can think of is Nicer Permalinks its not exactly what you are looking for but its the next best thing




    thnx for the suggestion. I am more after a simple function that I can apply to the theme and modify to my hearts desire. At the moment I have little experience with rewrites :( sad….



    Hi there anointed. I assume that you are using bbPress 1.*. Let’s see what we got:

    In bbPress the topic permalink is builded against site and not forum.

    If I have a topic named ‘foo’ in forum ‘bar’ and then I create another ‘foo’ topic in forum ‘pub’ then the permalink will be automagically named foo-2 by the bb_slug_increment function.

    You want:


    You can’t achieve this behaviour with just an .htaccess tweaking. You need also to intercept the get_topic_link filter and change the link. Maybe also you will need to do something in the bb_repermalink function.

    It can be quite challenging.




    thnx for info

    No I am using the new plugin.

    I do realize that I am going to have to work with some functions to intercept and change the permalinks as well as htaccess work.

    Mostly I was just checking to see if any other gurus here had tackled this task yet.

    John James Jacoby


    You can try making topics hierarchical, but that might make things goofy in other places.

    You might need to buckle down and write your own custom rules to overload the ones that WordPress generates with the custom post type.

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