The permastruct /%category%/%postname%/
will include the categories and subcategories in the URL from top to first assigned child. So, if you want the URL be site.com/source/books/moby-dick/*postname*
, you have to assign the post only to “Moby Dick”. Assigning the post only to “Moby Dick” category will still show the post under “source” and “books” category archives by default.
Related Posts:
- Filtering categories in the permalink structure
- Multiple post categories – single permalink
- Changing the category permalink structure
- Exclude subcategories from the url
- How to display only the parent category in the permalink
- Plural Category Base Slug On Category Archive Page
- How to set up Author archives with sub category URL
- force category base – archive pages work WITH & WITHOUT category base slug in url?
- Add “page-a” slug to category link if user visit category link from “page-a”
- One Specific Category To Permalink
- Read GET parameters in APACHE Mod Rewrite rules for WordPress categories in Posts
- Permalinks: display just one kind of wp category in the posts url
- Multiple URL’s based on category for one post
- Remove subcategory and category with some rules from permalink
- WordPress URL Rewrite for dynamic and customized URL
- How to get Next/previous_post_link to go through articles in top parent category
- Hierarchical permalink structure for posts showing categories and sub-categories
- Category URL Management
- Using custom structure prefix showing 404 for sub-categories
- A different permalink structure for different categories
- How to set the same base url for two different taxonomies?
- Remove “category” from permalink with add_rewrite_rule
- WordPress Category url redirects to subdomain
- Create monthly archive for parent category
- hierarchical taxonomy in permalinks? using same slug
- Most efficient use of custom taxonomies, categories, and pages
- Remove “?category=” in the URL wordpress ajax filter work for category
- 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 get permalinks with category base working with sub-categories
- 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
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- 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?
- How to remove category from wordpress url?
- How to create a custom url for a category [closed]
- Different template for subcategories
- Preventing index.php?category_name=something from redirecting
- Add forward slash on categories url (serve one version of a url)
- how to use a different domain/subdomain for authors/catagories on single site?
- How to change the category in URL for posts in multiple categories?
- How to exclude uncategorized from permalink structure /%category%/%postname%/
- Custom post types with their own permalink structure
- How to get the url to tag & category base set by the user?
- 404 error on subcategory pages
- Rewrite category wordpress
- Category and tag with same name
- Rewrite category slug
- How to only show posts on last child category
- How to? Redirect /category/sci-fi/ to /category/scifi/?
- How to Include the Parent and Child Category in the Permalink if the Post is Added to Both
- Category links suddenly started giving 404 errors
- Best and Cleanest way to remove /category/ from category permalinks? [duplicate]
- Root level category, tag, author and archive pages to work
- Combine Multiple Categories Into One URL Slug
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- Archive pagination causing 404 with permalinks structure
- Permalinks – Different structures for different categories?
- custom permalinks for category archive ( custom base and no parent slug )
- Categories lose hierarchy order once assigned to post
- WooCommerce change category url and product base
- Removing category base form links messes up the parent-child behavior
- New categories are now going to 404s
- Duplicate Category and Page URL loads Category instead of the Page
- Add Product categories to WordPress menu without losing hierarchy
- Custom Category/Subcategory structure
- One WP install, I need to map a custom domain name to each category
- How to show in search results posts with a particular tag in a particular category?
- 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]
- 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
- Categories not working – 404 Not found error
- Allow dot in wordpress permalinks (only for categories)
- 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
- 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?
- Category being displayed without base parmalink
- How to change category and year archive permalinks/rewrite rules?
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404
- Removing post category base giving Error 404
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- Categories showing page not found