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

I'm having a lot of trouble finding an aswer to this. This is what happens to my permalink structure currently:

  • When I open the page, filtering all posts for a category, the url is: myblog.com/category/

  • When I open the page filtering all posts for a sub-category the url is: myblog.com/parent-category/child-category

Both are OK! But...

When I open the page for a blog post listed in a sub-category the url is:


I need the URL to be: myblog.com/parent-category/child-category/postname

But I don't know how to add the proper rewrite rule for this! Any ideas? My current Permalink structure is /%category%/%postname%/

share|improve this question

This happens because you chose category and subcategory from the right options tick boxes when editing the entry. Choose only the subcategory box in every entry and it will show the nested URL.

This is I found online. And I just tried that. It's true. Hope this will help you.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.