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
- 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?
- How to Check if a Page Exists by URL?
- How to display non-hierarchical taxonomy as terms with checkboxes?
- 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?
- Different template for subcategories
- 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
- How to create non-unique sub-category slugs?
- How to only show posts on last child category
- 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 )
- Categories lose hierarchy order once assigned to post
- 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
- Add Product categories to WordPress menu without losing hierarchy
- How can I get an tag to wrap each ancestor that gets outputted in this condition?
- Best way to programmatically link to multiple categories (union/intersection) [closed]
- “Reversable” and “Re-useable” Subcategories (or other taxonomic structure)
- how to get the categories for a single post in a hierarchical way
- Category tree is flattened inside admin upon saving
- 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?
- Categories vs. Page Site Organization
- 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?
- How to enable category hierarchy for links?
- 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/
- Combining post categories and link categories?
- 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
- How to categorize posts under Category 1 and Category 2 which are separate lists of categories, and display them as separate lists in widgets
- 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