Specifying multiple categories in URL (permalink)?

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?

Related posts

Leave a Reply

2 comments

  1. 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.

  2. 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 🙂