There are a few answers, scattered around this forum. To summarise:
Configure your Permalinks:
- Head to
Dashboard > Settings > Permalinks - Scroll down to ‘Product Permalinks’ and select ‘Custom Base’.
- Enter
/%category%/into the text field and then select ‘Save’.
Assign Product Categories:
If your products are still not showing the Child Categories, within the URL, it could be because you are selecting both the Parent and Child Categories, for the Product to be assigned to. Simply select the Child Category only and you should now see the Product’s URL structure showing both the Parent and Child Category.
Related Posts:
- How to get permalinks with category base working with sub-categories
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Multiple post categories – single permalink
- How to create a custom url for a category [closed]
- Exclude subcategories from the url
- WooCommerce change category url and product base
- Add “page-a” slug to category link if user visit category link from “page-a”
- Remove subcategory and category with some rules from permalink
- Hierarchical permalink structure for posts showing categories and sub-categories
- A different permalink structure for different categories
- How to remove category name for only one category?
- Category URL’s 404 after setting category base to ‘.’
- Accessible Subcategory URL’s pages without using .php hack
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Multiple Parent Category URLs
- Remove parent category from permalink? Basically only have the child category?
- Custom permalink structure leads to be 404 on pagination
- Posts URL structure like site.com/category/the-post-title
- How to remove the term “category” from category pagination?
- Category archive by year with permalink support /category/YYYY
- Add a URL prefix to permalinks of one category of posts only
- Filtering categories in the permalink structure
- Allow duplicate permalink slugs for posts in different categories
- Force WordPress to Show Pages Instead of Category
- How do I use the same post slug for different Categories?
- What’s the URL for a category archive?
- Rewrite rule page url with category
- How to remove category from wordpress url?
- Add forward slash on categories url (serve one version of a url)
- How to change the category in URL for posts in multiple categories?
- How to exclude uncategorized from permalink structure /%category%/%postname%/
- Using URL parameters, list posts from category and custom taxonomy
- How to get the url to tag & category base set by the user?
- 404 error on subcategory pages
- Rewrite category wordpress
- Categories’ hierarchy in URL
- How to create non-unique sub-category slugs?
- Changing the category permalink structure
- Category links suddenly started giving 404 errors
- 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
- Page with the same name of a category
- Archive pagination causing 404 with permalinks structure
- Permalinks – Different structures for different categories?
- Plural Category Base Slug On Category Archive Page
- custom permalinks for category archive ( custom base and no parent slug )
- Removing category base form links messes up the parent-child behavior
- New categories are now going to 404s
- Get a permalink structure of /%posttype%/%category%/%postname%
- Duplicate Category and Page URL loads Category instead of the Page
- Best way to programmatically link to multiple categories (union/intersection) [closed]
- “Reversable” and “Re-useable” Subcategories (or other taxonomic structure)
- Default category link for a custom category is a broken link
- How to set up Author archives with sub category URL
- Allow dot in wordpress permalinks (only for categories)
- Using a portfolio_category slug in wordpress URL
- Viewing category pages without the word ‘category’ in URL
- wordpress wp_list_categories
- How to get category URL with the slug?
- How to filter posts by format and category via url?
- How to Filter categories in the permalink structure
- Specifying multiple categories in URL (permalink)?
- Possible to make a subdirectory that loops through a single category?
- WordPress subcategories return 404 in custom template
- force category base – archive pages work WITH & WITHOUT category base slug in url?
- How get permalink for the current category or tag?
- Redirect category to url with /category
- Changing permalink from /postname/ to category/postname/
- Rewrite a category
- How do I get rid of “category” from my URL structure?
- One Specific Category To Permalink
- Category being displayed without base parmalink
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404
- Removing post category base giving Error 404
- Categories showing page not found
- How to disable default category linkbuilding?
- The default code for “posts_nav_link” on category.php isn’t working
- Read GET parameters in APACHE Mod Rewrite rules for WordPress categories in Posts
- Have different permalinks based on category
- Show parent category in URL of subcategory archive page
- How do I toggle pagination on/off in search results and category listings via a link?
- Mod_Rewrite to show only last subcategory in URL
- Permalinks: display just one kind of wp category in the posts url
- Multiple URL’s based on category for one post
- Same base for category and post
- category permalinks
- Hide uncategorized when no category set
- Sub Categories Keep Redirecting to Pages With Same Slugs
- How to rewrite the post URL according to the category?
- WordPress URL Rewrite for dynamic and customized URL
- Removing subcategories from permalinks [duplicate]
- A single category with a specific permalink structure differing from the standard set for the rest of the site
- Custom category URL rewriting
- Older entries link within category page
- category url structure
- menu using category and tags
- How can you change the permalink for pages?
- Get category URL knowing it’s id