How to remove parent category slug from url on child category pages?

I want to remove the parent category slug from the url on child category pages.
The current url structure is: mywebsite.com/parent-category/child-category/ but I would like to change it to: mywebsite.com/child-category/
I could use a plugin for this but it means having to change the permalink for each category on an individual basis.

Read more here: How to remove parent category slug from url on child category pages?

Leave a Reply

Your email address will not be published. Required fields are marked *