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]
- Is there a way to create a single rewrite rule to handle multiple variables depending on what is present?
- 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?
- How can I rewrite the URL of my custom taxonomy to include the year?
- Rewrite only if no other matching page is found
- Redirect empty search to another page
- Custom Taxonomies Archive Page 404
- How to replace custom post type with custom taxonmy in permalinks
- problem : Custom taxonomy template not showing
- True or F False Setting of ‘with_front’ Parameter of Rewrite Is returning Exact Same result
- Multiple Custom Taxonomy Rewrite
- Change CPT permalink to use the category
- How to fix 404 on post after prepending Custom Post Type url with Custom Taxonomy Term slug
- Redirect Custom Post Type from Child Taxonomies
- Why is there a 404 on page 2+ for my search page?
- How to create archive pages for metadata query generated posts (so without taxonomy)?
- How to create a completely functioning separate archive for posts from only 1 or 2 specific categories
- Remove taxonomy name and add .html extension in the custom taxonomy term URL
- How to paginate with an query var appended to permalink?
- URL Rewrite and Archive Template Files – Post Type vs. Taxonomy
- How to build overlapping custom post_type and taxonomy rewrites without conflicts?
- How to get a terms and posts associated with another term?
- Change the Page Title of the Archive Page for Portfolio Tags
- Custom taxonomy archive slug overwrites static page
- Custom taxonomy return 404
- What’s the url queryvar for a taxnomy archive?
- Multi level archive
- Permalinks incorrectly inserting multiple categories
- Custom Post Type rewrite url to /category/pagetitle [duplicate]
- page not found for example.com/custom-post-name
- Error 404 in Custom taxonomy with pagination
- index.php Not Showing Custom Posts / Terms
- Custom Taxonomy Archive Page for Parents AND Children?
- Redirect or Prevent Viewing of Custom Taxonomy’s Archives?
- Creating a Taxonomy Page [duplicate]
- Need help understanding a rewrite with multi-level taxonomy
- redirect old post type url to new structure url
- If term and page have the same slug, how can I view the term archive?
- Broken paths on taxonomies after changing permalink to post name
- Custom taxonomy rewrite in permalinks for posts gives 404 on pages
- Why won’t this rewrite rule work?
- add_rewrite_rule is not fired
- rewriting for custom taxonomy rewrite
- Parent cpt/child custom post type URL permalink relationship
- Taxonomy to WordPress Permalinks of custom post type
- Exclude 2 in 3 terms of A Taxonomy from all Archives
- Multiple Taxonomy in URL/Query – No Custom Post Type
- Creating a page for custom taxonomy archive
- Insert code on specific taxonomy archives
- Permalinks not working on MU network with domain mapping
- Custom Taxonomy in Permalink from post type
- 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
- More than one Hierarchical Taxonomy and SEO
- Later change of taxonomy slug base not changing permalink
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- 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
- Filter posts and custom taxonomy using add_rewrite_rule
- Why my archive title isn’t showing?
- Creating a custom archive page for WooCommerce products based on tags
- Two taxonomies with the same slug
- Remove date rewrite rule for custom post type archive page