This is controlled by the with_front
argument in your taxonomy registration code:
register_taxonomy(
'genre',
'artist',
array(
'rewrite' => array(
'slug' => 'genre',
'with_front' => false, // don't prepend static prefix from post permalink
),
// your other args...
)
);
Related Posts:
- Removing taxonomy base using WP rewrite
- Custom taxonomy on permalink
- Add parent/child taxonomy to custom post type url
- Custom permalinks with hierarchical taxonomy – getting PHP warning
- how to change permalinks format for pagination?
- Rewrite Rules returning wrong data
- How do I get the correct URL?
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Can’t get a custom template taxonomy page to display
- How to modify URL structures in custom post types and taxonomies or terms
- How to enable hierarchical permalinks for hierarchical taxonomies
- Custom taxonomies, with custom rewrites/slug, AND loading a taxonomy archive template from a plugin
- Permalink rewrite with custom post type and custom taxonomy
- Nice URLs for a Custom Post Type List with a Shared Custom Taxonomy?
- WP Rewrite Rules – Custom post type & taxonomy
- Pros and cons of using [taxonomy name] in place of [category name]?
- Remove base slug in CPT & CT, use CT in permalink
- WP redirects pretty permalink to query string
- Permalinks for quote authors
- Custom Permalink Tag breaks Pagination
- Custom Permalink for Taxonimie and Custom Post Type
- Keep taxonomy base name in post permalinks
- Permalink Structure CPT With Custom Taxonomy Fails
- Permalinks for custom taxonomy stopped to work
- Taxonomy with_front causes all
- 404 error- issues with pages after adding custom rules for posts
- How to overwrite registered taxonomy url from vendor plugin in child theme
- How to add a Rewrite Rule / Category Structure
- Customize Custom Post Type URL
- Taxonomy Pagination Rewrite
- Custom Permalinks with CPT and Hierarchical Taxonomies
- How do I modify taxonomy term slugs dynamically?
- Permalink help with default Posts and custom Taxonomy
- Custom Taxonomy and Rewrite URL
- How do I create a permalink structure with 2 taxonomies
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Query custom taxonomy by term id?
- How to add hierarchical taxonomy with parent child relation to URL?
- WordPress custom permalink and archive link for custom post type
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- How can I rewrite the URL of my custom taxonomy to include the year?
- How to change Custom Permalink for Taxonomy? (remove the slashes from term-slug)
- How to replace custom post type with custom taxonmy in permalinks
- How to structure all custom-taxonomy with three verbs(a,b,c) and route them accordingly?
- Rewriting url for multiple Taxonomies and Custom Post Type
- Custom rewrite url structure for several custom taxonomy (NOT pos_type)
- Hierarchical taxonomies in permalink cause 404 for sub term archive
- Permalinks incorrectly inserting multiple categories
- Permalink structure not working with Custom Taxonomy (URL like ./taxonomy/category/postname)
- add_rewrite_rule using custom taxonomy and year
- Need help understanding a rewrite with multi-level taxonomy
- Parent cpt/child custom post type URL permalink relationship
- Taxonomy to WordPress Permalinks of custom post type
- Rewrite URL for a specific taxonomy [duplicate]
- custom taxonomy and pages rewrite slug conflict gives 404
- Remove taxonomy base or term from url
- Custom taxonomy listing page when no term set (all terms)
- Adding meta values to permalink
- URL rewrite rules for multiple taxonomies query
- How to check if last uri segment is a custom post type or taxonomy term?
- custom taxonomy archive permalink shows 404 error
- Sorting Posts Via Custom Taxonomy Values Using Checkboxes?
- Add specific word to default page permalink
- Custom Post Type and Custom Taxonomy Permalinks
- I need a custom permalink for my website
- Change Permalink Structure for Tag.php template
- add_rewrite_rule not working for me
- Using WP Rewrite, but just not “getting it”
- Rewrite URL for taxonomy listing
- Custom taxonomy returns 404
- Pretty URLs and custom post types
- Plugin generated taxonomies’ permalinks with custom placeholders
- Custom permalink with child taxonomy terms
- Pagination on Custom Tax Pages Removes Spaces from Query Vars
- Taxonomy Rewrite Rules Redirecting Instead of Masking
- Set parent for custom post type archive rewrite url
- Custom rewrite permalink doesn’t work
- How can I set up a secondary permalink structure?
- Permalink issues with custom taxonomies
- How to Use metada Value in Url and is it possible? [duplicate]
- Safest way to create a custom permalink
- Custom WooCommerce rewrite rules with comma delimiter
- Change the full permalink (URL) of a single post by connecting it to a specific page
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- WordPress Multisite ABSPATH and get_home_path() to check for htaccess or web.config file
- Redirect page to homepage, keeping URL
- Redirect Custom Post Type from Child Taxonomies
- Remove “category” from permalink with add_rewrite_rule
- Permalink structure /page/page/cpt-post gives 404 with pagination
- What permastrusture tags are generated out of the box right after creating custom post types and taxonomies?
- Rewrite posts url as they’re all children of a page
- Multiple Permalink Patterns for one page
- Custom Post Type rewrite url to /category/pagetitle [duplicate]
- redirect old post type url to new structure url
- Permalink Rewrite to include Custom Taxonomy Term
- WordPress permalink still not working (error or not understood?)
- Multiple Taxonomy in URL/Query – No Custom Post Type
- Creating a page for custom taxonomy archive
- Custom Taxonomy in Permalink from post type
- 404 Error On Custom Taxonomy Pages 2, 3, etc