You can add flush_rewrite_rules()
after registering your custom taxonomy.
NOTE:
Flush rules only on activation or deactivation, or when you know that
the rewrite rules need to be changed. Don’t do it on any hook that
will triggered on a routine basis. More detail information in the
comments on WP Engineer’s post: Custom Post Type and Permalink
OR
You can go to Settings → Permalinks → Save Permalinks, that should flush the rewrite rules manually.
Related Posts:
- What is wp_insert_term “alias_of” arg for?
- Can we have same term slug in different taxonomies?
- Set default (auto) slug prefix for Tags
- taxonomy/category term in URL slug irrelevant for post?
- How can I increase the length for the taxonomy term slug?
- Expired event redirect to parent category
- Filtering elements by taxonomy slug
- Select query with two and two related taxonomies
- get_term_by with a variable
- Calling an Archive Page with specific Tag/Tax ID
- Rewrite slug for WP core taxonomies
- How to have article URL like example.com/article1 and example.com/foo/article2?
- I want to change the slugs of my terms dynamically
- All tag/category/custom taxonomy archives 404
- Why do my offline development site and online live site behave differently?
- Pages throwing 404 error on server load
- Taxonomy link not working (leads to 404 page)
- Need a simple but complete example of adding metabox to taxonomy
- Custom Taxonomy WP_Query for All Terms in a Taxonomy?
- wp_set_object_terms() Fails to Set Terms
- WordPress – Creating multiple versions of the same single-customtype.php depending on selected taxonomy categories
- check if tag exists in wp database
- Create terms when registering taxonomy?
- How to create non-unique sub-category slugs?
- How to set a Preset category for custom post types?
- Display Post by taxonomy and taxonomy child
- Update all posts at once
- Why is there /index.php/ in all my links? How do I remove it?
- How to get the last term from taxonomy?
- List post from current taxonomy children
- Get the term for an taxonomy archive when the term has no posts
- How do I get the slug of a custom taxonomy category of a post?
- orphaned taxonomy terms remove by sql query
- has_term not working
- How to make checkboxes from taxonomy terms?
- WordPress built-in method to extract array of term IDs?
- Convert Custom Post Types to Custom Taxonomies
- How to Retrieve a Taxonomy Term’s ID?
- get_terms problem : related articles
- Display Taxonomy Description on edit-tags screen?
- Order custom Taxomony alphabetically and reversal after clicking a button?
- Set multiple Post Terms in same Taxonomy
- WordPress Customizer – pass setting value into another control to live update drop-down choices
- How to prevent a CPT’s slug and page slug from conflicting with each other?
- custom post type and taxonomy url rewrite without tax-name
- Edit page slug after save, cause 404 by linked pages
- Show child terms of current term of the taxonomy
- Display specific taxonomy
- add upload image to default taxonomy
- How to get custom field value in frontend for taxonomy
- List taxonomy term slugs within shortcode (do_shortcode)
- Get Link to Feed On Term or Taxonomy
- Syntax help needed: Taxonomy Query
- How to make tags show up in search results?
- Different permissions for same type of post
- custom taxonomy terms archive page
- How can I completely hide a taxonomy term from “frontend”? [closed]
- SQL query joining on taxonomy tables not returning what I would expect
- List sub-taxonomies from current taxonomy
- Retrieve list of taxonomies in json
- Adding inline help to category/taxonomy checkboxes in admin sidebar
- Match and Merge Terms in Different Taxonomies
- Can you have seperate sidebars for multiple taxonomy archives?
- Display check marked taxonomies as drop down menu
- How to order a taxonomy’s terms numerically, from lowest to highest using get_terms
- Displaying Custom Taxonomy Children in Dropdown
- update_term_meta not working
- Display List of All Taxomony Terms of A Post
- WP_Query, Taxonomy, list of attached items to a Term, sorted
- How to Redirect WordPress domain.com/?anyword to 404 Page?
- Query Two Different Taxonomies Nested
- wp_insert_term doesn’t want to enter its data into custom taxonomy
- Is it possible to prevent the deletion of taxonomy by detecting $_GET request
- Why doesn’t ‘post__not_in’ work with ‘cat’?
- Showing related post for custom taxonomy
- Noticed updating taxonomy terms take a long time and run out of memory
- List of all posts from current category on single portfolio page
- How to disable the use of certain words in categories
- What is the use case for sharing a term between multiple taxonomies?
- How do i get the link of the assigned taxonomy term?
- How to assign a default/priority taxonomy to be shown in url in case two taxonomy items are selected
- Add pagination to for each taxonomy terms
- taxonomy_edit_form_fields output after term fields
- Make/create a category for every page
- fix slugs containing invalid characters?
- Get posts with Taxonomy term meta
- Fatal error Call to a member function filter()
- Custom Post Type Archive with Dynamic Taxonomy Filtering
- What is the earliest hook you can piggyback on to check terms/taxonomy for a collection view?
- 2 Different Taxonomy with Hierarchical Term Relationship
- Taxonomy for custom post type not found
- Random post order and taxonomy filter
- Taxonomy templates in a multilanguage site
- ?taxonomy_name=slug shows both posts and pages
- Implode Taxonomy to hide parents?
- Taxonomy template for all taxonomies attached to certain post type
- Can One Taxonomies Terms be Ordered by A Seperate Taxonomy?
- Unable to do WP_User_Query with meta filter
- Custom Titles for Multiple Tag Taxonomy Page
- Add new taxonomy in WP without generate any url