Obviously, when setting up a new blog with WordPress, one of the first things you will do is change the permalink structure as by default “WordPress uses web URLs which have question marks and lots of numbers in them”.
Although dnxpert runs of the “date/postname” structure, a number of other sites I run function with the “category/postname” permalink structure.
Recently I built a WordPress silo site which had a number of categories and subcategories – it was a recipe site with category recipes and subcategories soups, desserts etc. I wanted each post to show its specific subcategory in the url. For example, I wanted to show fruit cake with the following permalink structure: “mysite.com/recipes/desserts/fruit-cake”
How did I get subcategories to show in permalinks?
It is actually quite obvious and simple yet I never realized this before. When you assign a post to a subcategory, simply don’t also assign it to the parent of that subcategory. In my case, I assigned the fruit cake post to desserts and not to recipes and hey presto, I had a permalink structure that I wanted.