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

For example: http://www.example.com/dell/studio/studio-1558 where dell and studio are categories

A few months back I heard from someone that it is not possible. I need to know why? Which part of code prevents it? Is there any workaround for this?

share|improve this question
up vote 2 down vote accepted

Some folks asked the same question you did here. This one specifically worth reading, if you haven't already. It has ottopress explanation for harmful permalinks.

If you really want to force this, you could write your own permalink (http://domain.com/category/subcategory/post...), then either use htaccess rewrite rule or WP_Rewrite to take them to the link wordpress generated.

This merely satisfies your visual requirement, but it adds server load.

share|improve this answer
Sorry, I've down voted this answer as I don't think it actually answers the actual question that was asked, the question was about how to have multiple categories specified in a url. Although it was true in pre WP 3.3 that categories in Permalinks were a bad idea this wasn't actually what the question was about, but as this is fixed in WP 3.3 this also makes this answer inaccurate. The Ottopress post linked above has been updated to show this: ottopress.com/2010/category-in-permalinks-considered-harmful – Rick Curran Jan 12 '15 at 12:01

You create categories with the correct parent and child/children. The trick is to only select the lowest category, not each one, and WordPress will automatically do that for you, i.e.

- Cars
    - Chevrolet
        - Camaro

Only check Camaro and WP will make a slug for all the parent items :)

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.