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.

Is there any way (plugin or function), to include the sub-category and the category automatically in the permalink structure?

I want an URL structure like this:

category/subcategory/posttitle/

share|improve this question

1 Answer 1

set the permalink as

  /%category%/%postname%/

When you set a category parent of child, the permalink will be

  ../category/child-category/postitle

I tried and worked fine!

Regards

share|improve this answer
    
Thanks for sharing this. It's working for me! But for this you need to assign only "sub-category" to the post. Means, I have a post under "parent category > sub-category1", so, I will assign "sub-category1" to the post and not the "parent category" and "sub-category1". –  Anuja May 20 '13 at 9:15

protected by Community Jun 27 at 8:12

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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