Category page slug only showing child category, not parent category
-
Saw this question unanswered in a couple topics.
I have several parent categories (actor, director, etc.) each with a long list of child categories (names e.g. Tom Cruise). I’m trying to get Yoast to include both parent and child categories in the slug for a category page (website.com/actor/tom-cruise) but it won’t do it, only including the child category (website.com/tom-cruise).
I do have “remove the categories prefix” enabled (“remove”) but ran a test with it disabled (“keep”) and it didn’t solve my problem – only added “category” (website.com/category/tom-cruise).
For what it’s worth, both URLs actually work (with and without the parent category) so I can solve my problem using a redirect to my preferred URL, but I’m wondering if this affects SEO especially when Yoast is preferring the “child category only” URL it shows in the Snippet Editor.
? latest WordPress installed
? latest Yoast and all other plugins
? WP permalink settings are custom and include category.What am I missing? Thanks.
- The topic ‘Category page slug only showing child category, not parent category’ is closed to new replies.