When I add a subcategory, instead of the url being, .../parent-category/subcategory it keeps creating this:
.../parent-category/subcategory-parent-category
which becomes a long url and redundant.
An example would be ..../dog-leashes/pink-dog-leases-dog-leashes
I want it to be .../dog-leashes/pink-dog-leashes
No matter what I put in the category slug, it keeps adding the parent category onto the end. How do I fix this?
tijmensmit
Member
Posted 1 year ago #
I have the same problem, I did find that if you change it to something that doesn't make sense like aaaaaaa, or bbbbb it does work properly. But then when you try to change it into something that makes sense, like the name of the subcategory itself. You get the name of the parent-category in the slug as well.
The problem is when you have child categories with the same name but under different parent category. WordPress automatically adds the parent slug to the child slug.
Does anyone know a work around this?