Found the solution. The rewrites were getting added to the db after the system was reading them from the db. Moved the code and it worked!
Related Posts:
- If term and page have the same slug, how can I view the term archive?
- Custom Taxonomy Endpoint Pagination using paginate_links()
- Can’t get a custom template taxonomy page to display
- Removing taxonomy base using WP rewrite
- Custom taxonomy on permalink
- How to enable hierarchical permalinks for hierarchical taxonomies
- Custom taxonomies, with custom rewrites/slug, AND loading a taxonomy archive template from a plugin
- How to include parent terms in hierarchical taxonomy URLs?
- term_link() filter or rewrite and howto?
- WP redirects pretty permalink to query string
- How to redirect custom post type archive to first term of associated taxonomy?
- Add parent/child taxonomy to custom post type url
- How do I get WordPress URL rewrites into Sitemap?
- Create multiple rewrite endpoints for custom taxonomy archive
- 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
- Custom permalinks with hierarchical taxonomy – getting PHP warning
- Taxonomy Pagination Rewrite
- How do I modify taxonomy term slugs dynamically?
- Redirect on saving term at custom taxnomy
- Permalink help with default Posts and custom Taxonomy
- how to change permalinks format for pagination?
- Custom Taxonomy and Rewrite URL
- Rewrite Rules returning wrong data
- Rewrites with hierarchical taxonomies in permalink
- Rewrite rules for varying nested terms of custom taxonomy
- I don’t need ‘view’ page for my custom taxonomy
- How to change url for taxonomy pages?
- Why is flush_rewrite_rules mandatory after registering custom taxonomies?
- Check If Taxonomy A and Taxonomy B has same Slug, 301 Auto Redirect Tax A to Tax B if True in WordPress
- Custom taxonomy link automatically removing query string and re-directing
- Best way to redirect taxonomy terms to pages
- forward/redirect taxonomy archive of term to a page with same name
- 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 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?
- True or F False Setting of ‘with_front’ Parameter of Rewrite Is returning Exact Same result
- Multiple Custom Taxonomy Rewrite
- 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
- Permalink structure not working with Custom Taxonomy (URL like ./taxonomy/category/postname)
- add_rewrite_rule using custom taxonomy and year
- rewriting for custom taxonomy rewrite
- New rewrite rules for custom taxonomy and reuse default
- Filter posts and custom taxonomy using add_rewrite_rule
- Rewrite URL for a specific taxonomy [duplicate]
- Two taxonomies with the same slug
- Get term name from term ID?
- Can custom taxonomies be displayed inside of a custom meta box?
- Front End Post Save Child terms
- Display child taxonomy until the last child
- URL rewrite rules for multiple taxonomies query
- Pros and cons of using [taxonomy name] in place of [category name]?
- How to display and use all existing tags at my write-post-at-frontend-panel?
- How to use create_term, edit_term, delete_term actions?
- Echo taxonomy term meta on author.php
- Hierarchical display of custom taxonomy
- is there any limit of length on creating custom taxonomies?
- WPML Translating a term/taxonomy programmatically
- Display an image instead of tag name?
- Custom fields ‘for’ custom taxonomy?? Can someone explain why?
- Display Custom Post Type Taxonomy Child Categories and their Posts
- Register a pre defined tree of taxonomies
- Disabling wp_tag_cloud() outputting inline CSS
- How to use taxonomy term as a value of get_template_part?
- Hierarchical Taxonomy Terms Select Menu Output with selected=”selected” Set
- Does using custom taxonomy is more CPU efficient than using meta_data?
- WP REST API – get custom taxonomies based on terms & filter
- Using WP_Query and Query_post for the loop?
- Multiple Custom Taxonomy Dropdowns Lists
- Double slash in the_terms URL
- Using custom taxonomy when registering a new custom post type
- How to call a custom taxonomy term name inside a function?
- Get custom taxonomy name (not the term) in custom post
- query to use to link to taxonomy single page
- Display Child Categories of Current Post ID
- Taxonomies specific to Page attribute template
- Saving custom taxonomies to post as checkbox on frontend
- Custom taxonomy permalink without term, redirection to CPT slug
- How can I show links for custom posts group by taxonomy current term and sub-term?
- Show custom taxaomy as a product meta
- Keeping session instance of random display results over pagination breaks
- Template taxonomy-{taxonomy}.php doesn’t show my posts
- Count tags for current post and save into custom meta field (and update it on post edit)
- How to truncate the description in the admin panel for a custom taxonomy
- Custom button on custom taxonomy listing page
- customize taxonomy Page
- Why is it defaulting to “uncategorized” even after I select a custom taxonomy
- Remove taxonomy menu without removing the metabox?
- Custom taxonomy list in Worpdress
- How can I show custom field according to taxonomy?
- Insert code on specific taxonomy archives
- get_term_children specific no id
- custom texonomy category child category list with parent head
- Foreach for get_the_terms for hierarchical taxonomy don’t repeat Top Level Terms if contains multiple Second Level Terms