I am working on a recipe blog which uses the permalink slug (Dashboard > Settings > Permalinks) as
domain/%category%/%postname%/
this blog has multiple (8+) child-categories under almost all every parent category. A smoothie post was made under the “Courses” (parent category) > “Juices/Smoothies” (Child Category), also the primary category is set to “Juices/Smoothies” When the post is publish it’s using the permalink as:
domain/courses/juice-smoothies/smoothie-recipe
What I am trying to achieve is a link with only the child category and drop the parent category from the URL, like:
domain/juice-smoothies/smoothie-recipe
I tried checking/unchecking the courses but it didn’t work tried only selecting the “Juices/Smoothies” but that didn’t work either.
Looking forward to a solution since I can’t really find this on the WP forum as well but too much similar and confusing information.
PS: this blog is using the RankMath SEO plugin but the URL structure are not modified using this plugin. I will be happy to provide any additional information required to achivee the goal here and I appreciate all the responses in advance 🙂
Shahzad S. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.