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
- 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
- How to prevent new terms being added to a custom taxonomy?
- Custom Post Type Permalink / Rewrite not working immediately
- How to add images to taxonomies?
- Read-only taxonomy (user can assign term but can’t create or edit existing terms)
- Can you add the visual editor to the description field for custom taxonomies?
- Adding Category/Tag/Taxonomy Support to Images/Media
- Taxonomy menu with post count and multiple parents
- Sort Custom Post Type Archive by Taxonomy Term [duplicate]
- Large taxonomy (2000+ terms), causing WordPress to hang
- How to display warning on post editor when trying to add new term to custom taxonomy?
- Is it possible to have a taxonomy archive that lists taxonomy terms?
- Check if current term is a child of another term
- Is there a way to import terms into WordPress?
- WordPress Custom Post Type Category Page
- Custom metabox for menu administration page?
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- Exclude Custom Taxonomies
- How to get the top most term (top ancestor) of a custom taxonomy child term?
- Get custom category name from ID
- Set download limit and expiry for WooCommerce downloadable products in specific categories
- Populating dropdown menu with hierarchical taxonomies
- Storing data into custom taxonomies VS post custom fields (post meta)
- How to order a list of taxonomy terms alphabetically?
- get_the_terms issue
- ACF vs Taxonomies
- Reverse traversing taxonomy based on term_id
- Specifying a size when displaying an image associated with a taxonomy through ACF
- ‘wp’ action hook not firing in admin and login?
- Display all posts for taxonomy term across multiple custom post types
- Getting Term ID from Term Name for WordPress Query
- Taxonomies on custom taxonomies
- Get list of taxonomies associated with Subscribers
- How to join result of different taxonomies?
- How to add Post Format Taxonomy Archive page in the menu?
- How to add custom label or texts in featured image
- wp_insert_term created and set for first once only
- Show all taxonomy’s terms’ posts having another taxonomy’s term in common
- Render P2P metabox per taxonomy term
- Get taxonomy that is attached to post with all its parents
- Querying posts globally based on custom taxonomy with its own taxonomymeta table
- How to looping taxonomy terms?
- How to delete unused terms?
- Optional taxonomy in cpt permalink
- Child terms with improper parent in the url should redirect to 404
- How to handle custom taxonomy archive when no posts will have that taxonomy