Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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:

myblog.com/parent-category/postname

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

1 Answer 1

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

 
discard

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.