-
Hello,
I would like to only use the top level category in the permalinks of my posts.For example, lets say I have this category structure:
[Parent]
-Recipes[Child]
–Appetizer
–Main dish
–Lunch
–Soup
–Dessert
–Vegetarian
–Etc…Now let’s say I create a post for “Garden vegetable soup recipe”, I would tag this post with the 3 following categories “appetizer” , “soup” and “vegetarian”.
If I set my permalink structure to /%category%/%postname%/ this result in a url like :
https://domain.com/recipes/appetizer/garden-vegetable-soupThis is not what I would want, instead I would like :
https://domain.com/recipes/garden-vegetable-soupI do not want to have any sub-categories in the url (most posts are associated with multiple sub-categories).
Thanks,
The ticket ‘How to only use top category in permalinks’ is closed to new replies.