This happens because you chose category and subcategory from the right options tick boxes when editing the entry. Choose only the subcategory box in every entry and it will show the nested URL.
This is I found online. And I just tried that. It’s true. Hope this will help you.
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]
- Categories’ hierarchy in URL
- How to Include the Parent and Child Category in the Permalink if the Post is Added to Both
- 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
- How to get Next/previous_post_link to go through articles in top parent category
- 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%/
- Most efficient use of custom taxonomies, categories, and pages
- Multiple Parent Category URLs
- Custom permalink structure leads to be 404 on pagination
- Posts URL structure like site.com/category/the-post-title
- How to display non-hierarchical taxonomy as terms with checkboxes?
- What’s the URL for a category archive?
- Rewrite rule page url with category
- How to remove category from wordpress url?
- Different template for subcategories
- How to change the category in URL for posts in multiple categories?
- Using URL parameters, list posts from category and custom taxonomy
- How to get the url to tag & category base set by the user?
- 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
- Removing category base form links messes up the parent-child behavior
- Get a permalink structure of /%posttype%/%category%/%postname%
- Add Product categories to WordPress menu without losing hierarchy
- how to get the categories for a single post in a hierarchical way
- How to set up Author archives with sub category URL
- Using a portfolio_category slug in wordpress URL
- Viewing category pages without the word ‘category’ in URL
- How to Filter categories in the permalink structure
- Specifying multiple categories in URL (permalink)?
- Redirect category to url with /category
- Changing permalink from /postname/ to category/postname/
- Combining post categories and link categories?
- Rewrite a category
- 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
- How do I toggle pagination on/off in search results and category listings via a link?
- 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
- Custom category URL rewriting
- How do I make the category sidebar widget (stock) display the total # of posts including those in subcategories?
- Remove the parent name from permalink
- How to add a post without assigning to a category?
- WordPress alphabetical A-Z custom post type post result display
- Nicer URL for viewing category of posts?
- Change of category structure will cause two kinds of URLs for one post
- Function to automatically rename the base category permalink
- Cannon see subcategory in permalink
- Redirect Changed Permalink on wordpress
- How do I change the category permalink structure?
- category link not working for a specific slug, works for others
- Advanced permalinks structure
- Pagination breaks on child-categories, works fine on parent-category
- Is the part “category” fixed to an URL to an archive or post?
- Category URL Management
- Subcategory Page URL to Display Only Posts from that Subcategory?
- Can I show category name in url for only one of my categories?
- Show subChild categories
- How to set the same base url for two different taxonomies?
- Get multiple category names from permalink
- Get category base permalink
- Category page 404s on mobile but not desktop?
- Parent Category and Subcategory default text generated with category
- Include a page’s “category” in its URL
- Wrong category in URLs accepted like the correct one
- How to add a ‘News’ section to specific posts in WordPress
- Remove base category gives 404 error
- Custom permalink /%category%/%postname%/ produces 404 on each post
- WordPress Category url redirects to subdomain
- Get full control over custom post type url
- How to switch from custom post type URL to category URL?
- /blog/ permalink prefix causes category pages to 404
- Page Type with Category Link
- Modify / Rewrite single template url structure
- Display categories and their IDs
- Change next_post and previous_link to navigate throught parent categories only
- Using pagination with multiple loops causes it to break
- How can I get rid of the the category suffix–NOT “prefix” (i.e. foo-1, foo-2, etc)
- how wordpress generates permalinks as /%category%/%post%/
- Create custom Perma link
- List the category tree of all the product_cat categories
- Custom EndPoint not working when strip child category in URL
- Remove “?category=” in the URL wordpress ajax filter work for category
- How to add custom prefix before category base for category page URL?
- How to remove the category from the url only for a specific category of articles on wordpress