The taxonomy for custom post type must be included into REST API just as the custom post itself.
Add this to your custom post taxonomy arguments array:
'show_in_rest' => true,
'rest_base' => 'category',
'rest_controller_class' => 'WP_REST_Terms_Controller'
For more information http://v2.wp-api.org/extending/custom-content-types/
Related Posts:
- Custom Taxonomy as checkbox or dropdown
- Taxonomy: Why ‘with_front’ => false DOES NOT WORK?
- Fetch All Posts (Including Those Using a Custom Post Type) With WordPress API
- Custom Taxonomy as Dropdown in admin
- How to set individual capabilities on a taxonomy? Or how to re-register an existing taxonomy?
- How to sort list of custom posts to get view like a tree of posts under categories and their children’s categories?
- Query multiple taxonomy in Custom Post Type
- Custom Post Type: How to display all of same taxonomy?
- Remove “-2” from a Toolset Types URL with the same post name
- List all custom post type posts from a given category?
- Use the_taxonomies() to create a simple list
- Custom post type with specific category structure
- Custom Post Type and Taxonomy combination
- Exclude specific taxonomy term when using wp_get_post_terms
- Get Post Primary Category
- How to check the terms in single custom post type template
- Custom Post type with ACF in REST API, how do I get those values?
- is_main_query() not working for WP REST API
- How can I move a custom taxonomy and its data from one post type to another?
- Hierarchical Custom Post Types – Show only parent on tax archive?
- Pagination is not working on single-{slug}.php but works fine on page-{slug}.php
- Using The REST API How To Pull All Custom Posts?
- Custom Taxonomies not appearing in Admin
- Can taxonomies of custom post types be used with category actions?
- How to create custom post by using REST API securely?
- list taxonomies from a custom post type
- post meta parameter in post custom-post-type endpoint with restapi
- filter custom post in rest api with custom function
- Taxonomies relations
- Full Custom Post Type List Organised by two Taxonomies
- WordPress Doesn’t Generate Taxonomy Archive
- Adding custom taxonomy in same menu place with two custom post types
- Multiple pages for posts?
- How to organize hierarchical structure in custom post type with taxonomy (like with categories)
- Organize WordPress site, so it can maintain with huge database
- How to get all post of custom post type by rest api?
- Rename a slug label
- Custom Taxonomy Category link
- Get Post Terms of Current Post (selected taxonomy term) – How to get only the taxonomy value and not “Array ( [0] => taxonomy term )” in the frontend?
- Add tags to custom post type without menu link
- Need help deciding on a taxonomy
- Query all post and CPT from 2 specific taxonomies AND by ACF custom field
- Get Posts by Category, Tag , and CPT Taxonomy
- Pagination hitting 404 page on /page/4
- How to add a filter to a custom post type to get adjacent custom posts via the REST API
- Topic won’t save for a custom post type — how to debug?
- WordPress multisite – is it possible to have different taxonomies for each site?
- My custom taxonomy is only displaying 1 of 3 terms
- How to show list of taxonomy terms associated with specific post?
- Shortcode to return single custom post based on post taxonomy
- Sort results without WP_QUERY?
- Categories won’t appear on custom post type
- Custom Post Type Taxonomy Term Order by Title
- Using page title as a link to term archive
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- Displaying taxonomies as category links within sidebar and creating pages for these
- How to make an API call to a custom post type but filtering by meta value?
- “Menu order” being ignored when querying posts from a parent taxonomy with “include_children” set to true
- Can I use the ‘category’ taxonomy for both posts and a custom post type?
- Fetching custom post type without knowing post type (REST API)
- Get List of Terms based on a given term (different taxonomy)
- Question about link two types of data in wordpress
- Add Tags to a Custom Post Type from a FrontEnd Form
- Get the taxonomy value in the post loop inside the archive page
- Custom post type archive URLs with a single taxonomy
- How to show related posts of category on post within custom posttype
- wp_set_object_terms creates taxonomies but does not add custom posts to it
- WP_Query: how to search tags in addition to a custom post type?
- How do i enable categories for my custom post type?
- WP_Query for custom taxonomies showing posts from non-specified terms?
- localize_script or rest api
- Archive for custom taxonomy
- Listing all custom posts having a specific taxonomy whatever the terms
- Convert attribute woocommerce terms (taxonomy terms) in posts of custom post type
- How to Use A Custom Post Type as Taxonomy for Another Custom Post Type
- How to manage a dynamic multi-level page hierearchy system?
- Display custom tax in “while” loop
- filter rest api post by a acf filed
- Taxonomy template file not working with a taxonomy that contains a slash
- I can not call the categories of custom post type
- Showing taxonomies with terms that are attached to custom post
- Custom Taxonomy page redirecting to 404 page
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Custom post type taxonomy template and URL confusion
- Custom Taxonomy is disabled on Edit page
- Override “Parent” input for custom taxonomy
- Custom Post Type Categories Not Maintaining URL structure any more
- Best way to structure article and issue relationship for CPT
- Custom Post Type used for FAQs Accordion
- Check if taxonomy is attached to at least one post in a post-type
- How to make an admin create/edit post page to look like taxonomy page?
- Looping taxonomy in taxonomy?
- Custom Post Type order Title ASC
- Custom posts and custom taxonomies for many products and categories?
- get_the_term_list() wanting to loop through the returned values
- Displaying child taxonomies
- How do i get the taxonomy term name on the CPT archive page?
- Is there a function that replace category name with a icon?
- Show custom category archive as front page and remove taxonomy slug from urls
- How can I rename custom taxonomy if multiple custom post type have the same taxonomy name?