I’ve not reviewed your code, just a quick thought:
Have you tried Going to Settings => Permalinks and just clicking ‘Save Changes‘? That flushes the rewrite cache.
Related Posts:
- 404 error- issues with pages after adding custom rules for posts
- Archive page with multiple taxonomies rewrite
- Removing taxonomy base using WP rewrite
- Custom taxonomy on permalink
- Custom taxonomies, with custom rewrites/slug, AND loading a taxonomy archive template from a plugin
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- WP redirects pretty permalink to query string
- Add parent/child taxonomy to custom post type url
- Taxonomy with_front causes all
- How to overwrite registered taxonomy url from vendor plugin in child theme
- How to add a Rewrite Rule / Category Structure
- Custom permalinks with hierarchical taxonomy – getting PHP warning
- Taxonomy Pagination Rewrite
- how to change permalinks format for pagination?
- Custom Taxonomy and Rewrite URL
- Rewrite Rules returning wrong data
- How to change url for taxonomy pages?
- Permalink Problems
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- How to change Custom Permalink for Taxonomy? (remove the slashes from term-slug)
- How do I get the correct URL?
- 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)
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- Custom Taxonomy Archives Page Errors
- Permalink structure not working with Custom Taxonomy (URL like ./taxonomy/category/postname)
- add_rewrite_rule using custom taxonomy and year
- Custom Taxonomy Archive URL rewrite
- Rewrite URL for a specific taxonomy [duplicate]
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Can’t get a custom template taxonomy page to display
- Taxonomy archives based on Custom Post Type
- Permalink rewrite with custom post type and custom taxonomy
- Removing the base “Author” or changing it to something else. is it possible?
- Permalinks for quote authors
- Custom Post Type rewrite rules not working, how to alter the rewrite order?
- custom taxonomy archive by year
- Category page for custom-taxonomy shows 404 when using custom permalink structure
- Creating an Archive using a Custom Taxonomy
- Create multiple rewrite endpoints for custom taxonomy archive
- Display direct children of the current custom taxonomy in taxonomy.php template
- Date archive permalinks for custom taxonomy
- Should the actual /category/ directory be 404? Is that normal WP behaviour
- Remove url rewrites for registered taxonomies
- orderby meta_value breaks taxonomy term archives
- Change the permalink URL to include a taxonomy term
- Automatically Give All Custom Post Types a Pre-Set Category [duplicate]
- Page and Post return 404 with custom taxonomy
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- Custom Permalinks with CPT and Hierarchical Taxonomies
- Permalink help with default Posts and custom Taxonomy
- Add Taxonomy Subcategory To Permalink
- How do I create a permalink structure with 2 taxonomies
- How to use multiple archive templates for a taxonomy?
- Custom post type / taxonomy rewrite archive page 2 gives 404
- Rewrites with hierarchical taxonomies in permalink
- Query custom taxonomy by term id?
- Custom Taxonomy specific to a Custom Post type – rewrite URL
- WordPress custom permalink and archive link for custom post type
- Custom rewrite permalink doesn’t work
- forward/redirect taxonomy archive of term to a page with same name
- Modifying rewrite rules to use /category//
- Permalink issues with custom taxonomies
- why the archive of custom taxonomy term shows nothing?
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- Can I output a custom taxonomy as a submenu in the site navigation menu?
- Custom taxonomy throw error 404
- Remove cpt slug from url and use custom taxonomy instead breaks all other cpt
- Taxonomy URL rewrite whilst keeping filtered posts?
- Add terms to a taxonomy archive from within the same taxonomy
- How to properly set the rewrite rules for this case?
- Rewrite only if no other matching page is found
- problem : Custom taxonomy template not showing
- True or F False Setting of ‘with_front’ Parameter of Rewrite Is returning Exact Same result
- How to fix 404 on post after prepending Custom Post Type url with Custom Taxonomy Term slug
- Why is there a 404 on page 2+ for my search page?
- Remove taxonomy name and add .html extension in the custom taxonomy term URL
- URL Rewrite and Archive Template Files – Post Type vs. Taxonomy
- How to build overlapping custom post_type and taxonomy rewrites without conflicts?
- Change the Page Title of the Archive Page for Portfolio Tags
- Multi level archive
- page not found for example.com/custom-post-name
- Error 404 in Custom taxonomy with pagination
- Creating a Taxonomy Page [duplicate]
- Need help understanding a rewrite with multi-level taxonomy
- Broken paths on taxonomies after changing permalink to post name
- Why won’t this rewrite rule work?
- Parent cpt/child custom post type URL permalink relationship
- New rewrite rules for custom taxonomy and reuse default
- Can you orderby slug in a taxonomy archive page using WP_Query?
- Getting 404 when using rewrite rule for posts
- Getting Catategory / Taxonomy Description on Non-archive Pages
- Taxonomies starting with a hyphen (minus) to assign B.C. dates to a post
- Custom taxonomy archive empty
- Why my archive title isn’t showing?
- Creating a custom archive page for WooCommerce products based on tags
- Two taxonomies with the same slug