Add flush_rewrite_rules();
after your register taxonomies. That fixed it for me.
Edit
Do make sure you do it on install of your plugin if you’re using it on one. It should only be run once on pug-in activation – and not on every page load. Alternatively visit Settings > Permalinks page as this flushes the rules too.
Related Posts:
- Custom Taxonomy Leads to 404 Page – Permalink Structure Flushed
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- 404 error- issues with pages after adding custom rules for posts
- Permalink Problems
- 404 Error on Custom Post Type / Custom Taxonomy
- Custom taxonomy throw error 404
- problem : Custom taxonomy template not showing
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- Hierarchical taxonomies in permalink cause 404 for sub term archive
- Custom Taxonomy Archives Page Errors
- Error 404 in Custom taxonomy with pagination
- Broken paths on taxonomies after changing permalink to post name
- Custom taxonomy rewrite in permalinks for posts gives 404 on pages
- Get the the top-level parent of a custom taxonomy term
- get_terms – only top level
- Custom taxonomy terms not showing as list Gutenberg Editor
- How to only list the child terms of a taxonomy and not their parents?
- How to use taxonomies on attachments with the new Media Library?
- Order get_terms using a Custom Field
- Using pre_get_posts to rewrite search query to display posts from multiple taxonomies
- How to display custom taxonomies in posts?
- How to modify the query in taxonomy-custom.php to sort term archives by a custom meta field?
- Hook to process a new taxonomy tag before it is created?
- get_terms() returns an empty array
- Scheduling posts to update once per day with wp_cron
- How to find taxonomy name using only taxonomy TERM ID (or taxonomy term name)
- Multiple users – only allow them to manage their own terms for custom taxonomy when logged in
- wp_options table value
- Custom Taxonomy Meta Admin Column
- Custom Taxonomy Only Showing Top Level Terms in Admin?
- How to assign default taxonomy to pages on ‘save_post’?
- Landing in 404 Page on Navigating to Custom Taxonomy Archive
- Get main term from a sub term in Woocommerce
- Permalinks for quote authors
- Using a loop to display terms associated with a post
- Custom Taxonomy: Parent still counting deleted Child
- In a loop of custom post type, display first custom taxonomy term
- how to create a proper query for getting a list of users with taxonomy related meta key
- Generic taxonomy-term template page
- Taxonomy page template changing when using query variables
- How to Query Database for posts with certain Taxonomy Term
- Adding Age Based WordPress Category
- Display direct children of the current custom taxonomy in taxonomy.php template
- Can you filter wp_dropdown_categories with terms meta?
- one term two taxonomy’s?
- How to create pagination for custom taxonomy in WordPress
- Page and Post return 404 with custom taxonomy
- Order by taxonomy Value [duplicate]
- Retrieving an intersection of two terms from two different custom taxonomies via API
- Category list with indent children list below current category
- Some of my custom taxonomies are not showing but still counted in a WPMU set up
- Remove categories from post edit page, but keep in sidebar?
- List of Registered Taxonomies of Current Post
- How do I display a custom field from a custom taxonomy in single.php?
- How to get posts which must match both custom taxonomies?
- Display all taxonomy, children and grandchildren with links
- Using custom taxonomies to display hierarchical URLs?
- Passing form inputs into multi-taxonomy query
- Taxonomy Parent Name
- Custom Taxonomy specific to a Custom Post type – rewrite URL
- Having Issue on Passing Variable into HTML Class Tag
- Proper use of wp_get_object_terms
- Get Terms for Page
- Custom taxonomy template list not working (404)
- tax_query: Don’t show posts with parent term when they have a corresponding child term applied
- Can’t get taxonomy ID for each post on archive page
- Add file attachments/meta to a custom Taxonomy
- How to add a date creation field when a custom taxonomy relationship is created?
- List custom taxonomies associated to an author’s posts
- Why can’t I access Custom Taxonomy metadata?
- Permalinks with custom taxonomies and regular categories
- WP_Query tax_query – Show results if child has parent X
- Taxonomy or Custom Field
- Trash Bin for Categories?
- Custom taxonomy – checking if name includes a declared value
- Display just the Post’s parent Category, not child
- How to add a shortcode function that returns the taxonomy slug of the actual post within the loop
- Random order not working correctly when using default loop + $query->set
- Convert post meta to custom taxonomy?
- How to get a taxonomy by a term slug?
- Get taxonomy link with post type slug prefix
- Modify title of custom taxonomy archive page
- qtranslate-x problem with custom term description
- WordPress custom taxonomies new/edit post autocomplete
- Custom Tax Archive of Parents Only?
- taxonomy query on front page
- Sorting terms individually for each post
- Looking for suggestions on creating simple database (Help!!)
- Custom taxonomy – query returns an error
- Change taxonomy of posts
- Pagination with custom query (not using posts)
- Getting grandchildren of a post with a specified custom taxonomy?
- Taxonomy Parameters in WP Query to get posts from two different taxonomies
- Update fields with post object and custom tax with wp_insert_post
- Get Posts with matching lowest taxonomies
- Any way to make custom taxonomy field searchable?
- Select Custom Taxonomy from Theme Options
- Remove Tag Cloud Words from Custom Taxonomy
- add_rewrite_rule pagination 404 error on page 4 and above
- Taxonomies starting with a hyphen (minus) to assign B.C. dates to a post