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.

My blog design heavily relies on categories and sub-categories. I would like the url structure to be dependent on that. How can I make the url's support the same?

I would like it to be like: http://www.mywordpressblog.com/categoryname/subcategoryname/postname.html It should also support further sub-categories if any.

And if I have any pages, It should follow the same structure just that it should be substituted by the page name.

Further info:

I am using Wordpress 3.0.1 and hence am using the custom menu feature which allows me to combine my pages and categories into one awesome menu.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

With the following as a permalink structure;

/%category%/%postname/

The category slug is added to the URL. Subcategories, if any, appear as nested directories.

So you end up with ;

  • /category/your-post-slug/

And if subcategories are used

  • /category/subcategory/your-post-slug
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.