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
- How to get permalinks with category base working with sub-categories
- Category archive by year with permalink support /category/YYYY
- Allow duplicate permalink slugs for posts in different categories
- How do I use the same post slug for different Categories?
- Preventing index.php?category_name=something from redirecting
- How to exclude uncategorized from permalink structure /%category%/%postname%/
- 404 error on subcategory pages
- Category and tag with same name
- Rewrite category slug
- How to only show posts on last child category
- Category links suddenly started giving 404 errors
- custom permalinks for category archive ( custom base and no parent slug )
- New categories are now going to 404s
- Duplicate Category and Page URL loads Category instead of the Page
- Custom Category/Subcategory structure
- 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?
- Default category link for a custom category is a broken link
- Categories not working – 404 Not found error
- wordpress wp_list_categories
- How to filter posts by format and category via url?
- 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 do I get rid of “category” from my URL structure?
- How to change category and year archive permalinks/rewrite rules?
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- Categories showing page not found
- How to disable default category linkbuilding?
- 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
- Add /category/ to an author archive page
- Mod_Rewrite to show only last subcategory in URL
- Give a page priority over a category that has the same name?
- Hide uncategorized when no category set
- How to rewrite the post URL according to the category?
- Removing subcategories from permalinks [duplicate]
- Flat category URLs but retaining hierarchy?
- Older entries link within category page
- How can you change the permalink for pages?
- Hide the word ‘category’ from my permalinks
- 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?
- How to link a PDF file to a category URL
- Redirect year month day postname permalink structure to category postname structure
- url for posts for a date within a category
- How to load several hierarchical categories from functions.php
- Check is category parent with ids from the childs – get_term_children
- Posts not listing out sub category in hierarchy
- list all child categories that apply to current post even if those cats are empty?
- Need help with major category and permalink re-organization
- How to use category slug with a regular page
- 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
- How do I rewrite a single category link to point to a custom page?
- Subcategory Page 404ing
- When category name and title are the same … WP will select archive.php instead of single.php
- Different template for subcategories
- Accessible Subcategory URL’s pages without using .php hack
- Hide category name using mod_rewrite
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Group Posts by First Letter of Title categories
- Change category base based on category
- Allow duplicate permalink slugs for posts in different categories
- Changing Permalinks for Category Pages Only
- How to include first assigned category in the post URL?
- Custom permalinks structure
- Category archive page has two URLs even when default theme is active with no active plugins
- WordPress how to remove parent slug from category URLs