Allow hierarchical slug support for use with categories
-
As you can see in the example below the hierarchy of categories can become quite complex.
Men Tops Dress shirt Polo shirt T-shirt Trousers Overalls Cargo Denim Shoes Trainers Sandals Smart shoes Boots Women Tops Dress shirt Polo shirt T-shirt Trousers Overalls Cargo Denim Shoes Trainers Sandals Smart shoes Boots Children Tops Dress shirt Polo shirt T-shirt Trousers Overalls Cargo Denim Shoes Trainers Sandals Smart shoes BootsAt the moment WordPress is designed to have unique slugs so with a three-level hierachy such as
Mens Tops Polo shirtthe URL/slug would result in this for example:-
http://www.domain.com/category/mens/mens-tops/mens-tops-polo-shirtA more ideal friendly URL/slug would be:-
http://www.domain.com/category/men/tops/polo-shirtMy knowledge of WordPress is very basic but I am aware of the functions.php file. Is there any functions I can use to change the bahaviour of WordPress so it allows categroies and slugs to have the same name so long as the parent is unique? If not can I make a suggestion for a future build?
Many thnaks
Will
The topic ‘Allow hierarchical slug support for use with categories’ is closed to new replies.