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
- Need help with add_rewrite_rule
- Custom Post Type Permalink / Rewrite not working immediately
- How to add images to taxonomies?
- Can you add the visual editor to the description field for custom taxonomies?
- Using two permalinks for one post
- Possible to register multiple custom taxonomies in one function?
- User role permissions based on taxonomies
- how to get archive urls with same origin for custom types and terms?
- Permalinks for Taxonomy and Custom Post Type
- WP Query with custom taxonomy
- multiple url slug for single custom post type
- Rename “Portfolio” slug?
- Taxonomy archive showing no results
- Remove custom taxonomy base from URL
- Changing taxonomy term by slug (wp_update_term)
- Custom taxonomy rewrite with query var returns %2F in URL
- Permalink structure between 2 custom post types and a taxonomy
- add_rewrite_rule – Page Slug from “/foo-bar/” to “/foo/bar/”
- Taxonomy archive template that shows posts from more than one taxonomy
- How to get the term description in a taxonomy term archive query?
- new custom filed not showing in taxonomy
- Add slug to default post permalinks ONLY
- Dropdown (with onChange) with custom taxonomies
- How to get a terms and posts associated with another term?
- How to use two same taxonomy in same post differently?
- Can I use multi (sub) levels of relation (AND | OR) on custom query?
- Advanced AND tax_query in sidebar with 2 taxonomies
- Alternative for is_taxonomy() to workaround theme’s default sidebar
- Adding new terms to custom taxonomy
- Add text in custom taxonomy
- How do I check if a post has a term with a particular ancestor/parent?