Good question.
WordPress determines the permalink by finding the category closest to the root.
- If the parent category is selected (or if both the parent category and the child category are selected), then the permalink will only include the parent category.
- If only the child category is selected, then the permalink will include the parent category followed by the child category.
So, for your case, be sure to select only the child category.
Related Posts:
- Custom permalink structure leads to be 404 on pagination
- How to get permalinks with category base working with sub-categories
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Filtering categories in the permalink structure
- Allow duplicate permalink slugs for posts in different categories
- How to remove category from wordpress url?
- Multiple post categories – single permalink
- How to create a custom url for a category [closed]
- How to change the category in URL for posts in multiple categories?
- How to exclude uncategorized from permalink structure /%category%/%postname%/
- How to get the url to tag & category base set by the user?
- 404 error on subcategory pages
- Categories’ hierarchy in URL
- How to Include the Parent and Child Category in the Permalink if the Post is Added to Both
- Best and Cleanest way to remove /category/ from category permalinks? [duplicate]
- How to display only the parent category in the permalink
- Root level category, tag, author and archive pages to work
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- Archive pagination causing 404 with permalinks structure
- Plural Category Base Slug On Category Archive Page
- custom permalinks for category archive ( custom base and no parent slug )
- WooCommerce change category url and product base
- Allow dot in wordpress permalinks (only for categories)
- wordpress wp_list_categories
- How to get category URL with the slug?
- Specifying multiple categories in URL (permalink)?
- force category base – archive pages work WITH & WITHOUT category base slug in url?
- How get permalink for the current category or tag?
- Add “page-a” slug to category link if user visit category link from “page-a”
- Redirect category to url with /category
- Changing permalink from /postname/ to category/postname/
- One Specific Category To Permalink
- How to disable default category linkbuilding?
- Show parent category in URL of subcategory archive page
- Permalinks: display just one kind of wp category in the posts url
- Multiple URL’s based on category for one post
- category permalinks
- Sub Categories Keep Redirecting to Pages With Same Slugs
- How to rewrite the post URL according to the category?
- Removing subcategories from permalinks [duplicate]
- A single category with a specific permalink structure differing from the standard set for the rest of the site
- Older entries link within category page
- How can you change the permalink for pages?
- Get category URL knowing it’s id
- Remove the parent name from permalink
- Redirect single article permalink to paginated category page
- How to get Next/previous_post_link to go through articles in top parent category
- Hide the word ‘category’ from my permalinks
- WordPress alphabetical A-Z custom post type post result display
- Hierarchical permalink structure for posts showing categories and sub-categories
- Use the category name instead of category slug in permalinks
- How to Link to Most Recent Custom Post of Same Term
- Function to automatically rename the base category permalink
- Category url generate 404 error
- How to remove one specific category (uncategorized) from post permalinks
- Custom Permalink with child categories creating 404
- How do I retrieve the category ID (ugly permalinks) in my sub-navigation menu?
- Redirect year month day postname permalink structure to category postname structure
- category link not working for a specific slug, works for others
- url for posts for a date within a category
- prefix to post permalinks without affecting category permas
- Category URL Management
- Categories show 404 error on multisite installation
- Need help with major category and permalink re-organization
- How to use category slug with a regular page
- Using custom structure prefix showing 404 for sub-categories
- How to add tags under categories
- A different permalink structure for different categories
- How to remove category name for only one category?
- Subcategories randomly not working after page/post/category edit in wordpress. Fix: saving permalinks twice
- Is it possible to set up blog categories without changing permalink structure
- Remove WP Core canonical for category pagination
- Category URL’s 404 after setting category base to ‘.’
- Subcategory Page 404ing
- Remove “category” from permalink with add_rewrite_rule
- Change Category Base For Custom Post Type or Posts Page
- When category name and title are the same … WP will select archive.php instead of single.php
- Accessible Subcategory URL’s pages without using .php hack
- same permalink for parent category and child category
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Group Posts by First Letter of Title categories
- Create monthly archive for parent category
- Using categories and pages in menus
- hierarchical taxonomy in permalinks? using same slug
- Change category base based on category
- Allow duplicate permalink slugs for posts in different categories
- Changing Permalinks for Category Pages Only
- Most efficient use of custom taxonomies, categories, and pages
- Removing short versions of category archive URL
- Link categories to last post
- How to include first assigned category in the post URL?
- How do I hide posts in a category from all listings but still allow the posts to be viewed?
- how wordpress generates permalinks as /%category%/%post%/
- Custom permalinks structure
- How to get category slug link? ( include parent categories)
- Category archive page has two URLs even when default theme is active with no active plugins
- Use same wordpress category base and tags as the prefix as the post permalink
- WordPress how to remove parent slug from category URLs
- Display last category child in permalink
- How do we ReWrite HTACCESS to point a cat/subcat Product URL, to Cat/ only?