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]
- Is there a way to create a single rewrite rule to handle multiple variables depending on what is present?
- Adding Category to Child Posts Permalink
- Permalinks with custom taxonomies and regular categories
- Permalink issues with custom taxonomies
- Need equivalent of single_term_slug
- 404 Error on Custom Post Type / Custom Taxonomy
- Custom taxonomy and post type rewrite rules
- How to Use metada Value in Url and is it possible? [duplicate]
- How to define %category% for custom taxonomies?
- Custom Permalink Structure for terms/taxonomies of custom post type
- Safest way to create a custom permalink
- Custom WooCommerce rewrite rules with comma delimiter
- Remove cpt slug from url and use custom taxonomy instead breaks all other cpt
- How Can I Remove Child Slug From Grandchild Slug When Using Duplicate Grandchild Slugs?
- Remove subcategory slug from url
- corrupted URLs – can’t leave starting page
- 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
- Prioritise Pages over Taxonomy Term Root Archive, but not Taxonomy Term Child Archives
- rewrite based slug standar post wp
- Rewrite URL for CPT to domain/post-name/post-id
- Taxonomy URL rewrite whilst keeping filtered posts?
- Create different permalinks for same post
- remove SLASH on single_post but KEEP on categories and parent pages
- How to set the same base url for two different taxonomies?
- How to properly set the rewrite rules for this case?
- Multiple Taxonomy Items for Separate URLs
- Rewrite/Change custom taxonomy slug
- Custom permalink structure for custom post types including multiple taxonomy
- Remove custom taxonomy slug from URL
- Multiple URL rewrite rules and get every prams
- Using a template file for a specific custom URL
- True or F False Setting of ‘with_front’ Parameter of Rewrite Is returning Exact Same result
- Multiple Custom Taxonomy Rewrite
- WordPress Multisite ABSPATH and get_home_path() to check for htaccess or web.config file
- Get taxonomy link with post type slug prefix
- Change CPT permalink to use the category
- Redirect page to homepage, keeping URL
- Add slug to default post permalinks ONLY
- How to fix 404 on post after prepending Custom Post Type url with Custom Taxonomy Term slug
- How To Create Dynamic Permalink To Custom Taxonomy List of Current Posts?
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- Redirect Custom Post Type from Child Taxonomies
- Pretty Permalinks with CTP and Taxonomies / Hierarchical
- Customise Permalink Structure For Custom Post Types
- How to add rewrite rule for product compare page?