WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So, I find myself in this situation now and again, trying to solve a particular workflow. I have a page hierarchy something like this:

Page 1
    Sub-page 1 (category term listing)
        Post 1
        Post 2
    Sub-page 3 (standard page)
Page 2 (category term listing)
    Post 5
    Post 6

Now the particular problem is that I want to maintain this hierarchical structure, particularly in the breadcrumbs and url (friendly rewrites). Basically I want category and post pages to appear in the page hierarchy, for example /Page 1/Sub-page 1/Post 1/, rather than the wordpress default: /category/{category-name} and /blog/{post-name}.

Is this just something WordPress won't do, or does anyone have any clever workarounds?

share|improve this question
It's not clever so much as a nightmare, but have you looked at WP_Rewrite? You can make up any permalink structure you want with the right filters and actions. – totels Nov 14 '12 at 14:50
agreed, sounds like fun. – kalpaitch Nov 14 '12 at 15:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.