Ok, so I will get negative points for this, but it should solve your problem, please dont be mad at me.
Before anyone downvote me for this, I must say that I have nothing to do with the developers of this plugin:
For custom taxonomies and custom post types I often use a plugin named “Types“. you can find it in install plugins at wordpress menu and should do the trick for you without any coding.
Related Posts:
- How do I get the correct URL?
- Removing taxonomy base using WP rewrite
- Add parent/child taxonomy to custom post type url
- Taxonomy with_front causes all
- Custom permalinks with hierarchical taxonomy – getting PHP warning
- how to change permalinks format for pagination?
- Rewrite Rules returning wrong data
- How to change url for taxonomy pages?
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- How to replace custom post type with custom taxonmy in permalinks
- 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
- Taxonomy archives based on Custom Post Type
- Custom taxonomies, with custom rewrites/slug, AND loading a taxonomy archive template from a plugin
- Permalink rewrite with custom post type and custom taxonomy
- How can I set up a category “overview” page?
- 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
- Change permalink of post if it belongs to custom taxonomy
- Permalink Structure CPT With Custom Taxonomy Fails
- Permalinks for custom taxonomy stopped to work
- 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
- Rewrite Rule Working for all but one of the taxonomies created
- Customize Custom Post Type URL
- How to Rewrite Taxonomy URL to Include the Post Type as the Second Segment of the URL?
- Taxonomy Pagination Rewrite
- Custom Permalinks with CPT and Hierarchical Taxonomies
- How do I modify taxonomy term slugs dynamically?
- woocommerce custom product category template
- Permalink help with default Posts and custom Taxonomy
- Add Taxonomy Subcategory To Permalink
- Replace taxonomy permalinks
- Custom Taxonomy and Rewrite URL
- How do I create a permalink structure with 2 taxonomies
- How to get list of taxonomy slugs ordered parents>childs?
- 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
- How to define %category% for custom taxonomies?
- Prioritise Pages over Taxonomy Term Root Archive, but not Taxonomy Term Child Archives
- How to set the same base url for two different 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)
- Custom permalink structure for custom post types including multiple taxonomy
- 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
- How To Create Dynamic Permalink To Custom Taxonomy List of Current Posts?
- 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]
- Child terms with improper parent in the url should redirect to 404
- 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
- Taxonomy rewrite question
- Is it possible to get a Previous/Next Taxonomy term archive URL?
- rewrite_rule for custom post type doesn’t affect get_permalink
- Add ‘articles’ prefix before blog posts url without affecting pagination
- Call to a member function add_rule() on a non-object
- display taxonomy slug from term ID
- Redirect all child taxonomy to its parent
- Remove url rewrites for registered taxonomies
- Change the permalink URL to include a taxonomy term
- Share same Slug for a Custom Post Type and 2 Taxonomies
- Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page
- WordPress implode & wp_insert_post question
- Get only immediate children (and not grandchildren) of a hierarchical custom taxonomy term
- Set parent for custom post type archive rewrite url
- How to group all terms children’s in custom taxonomy?
- How can I set up a secondary permalink structure?
- Custom Taxonomy Not Saving in Front End Post
- Taxonomize taxonomy terms?
- Permalink structure /page/page/cpt-post gives 404 with pagination
- Rewrite posts url as they’re all children of a page
- What’s the url queryvar for a taxnomy archive?
- set_object_terms for custom taxonomy in custom post type – not working
- Get all users attached to a taxonomy
- 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
- get_terms() – unexpected ‘=>’ (T_DOUBLE_ARROW) error
- 404 Error On Custom Taxonomy Pages 2, 3, etc