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:
- Best approach to allow front-end display of posts’ reviewers?
- WordPress add taxonomies/terms list as a menu in archive page
- Custom Taxonomy is disabled on Edit page
- Override “Parent” input for custom taxonomy
- Listing Custom Post Post from certain category
- get children from current variable (taxonomy) via shortcode
- Custom Post Type and Taxonomies, creating the corresponding template file and loop the data
- Related posts by taxonomy [duplicate]
- How to create TEMPLATES for TAXONOMIES? What I have to change in this code?
- Custom Post Type parent slug as menu item
- Sorting on Taxonomy in archive page
- Create an additional template page for every term taxonomy
- Default taxonomy ‘post_tag’ added to CPT managing by custom role : nothing in the metabox
- Simple term-archive-linked Taxonomy Entry output
- List all posts from custom post type by taxonomy
- Taxonomy count per Post type
- Displaying taxonomy icon outside archive page
- Custom Post Type Categories Not Maintaining URL structure any more
- Custom Search not working
- Custom post type post taxonomies
- Show all post of a taxonomy with one specific term not working
- Best way to structure article and issue relationship for CPT
- Taxonomy Grid Archive Help?
- Connecting multiple post types? Or linking “News” posts with “Game” posts how?
- Custom Post Type used for FAQs Accordion
- Sort by Custom Post Type (Multiple Loop)
- Archive templates based on taxonomies
- Query Distinct Taxonomies of Custom Post Type
- Show taxonomies from specific CPT
- Using a Taxonomy in Two Spots in a WordPress Post
- insert a taxonomy for a custom post type
- How to display elements of different post types?
- Custom post type URL returns 404 error page
- category_name not working in WP_Query
- Problems with custom post type and hierarchical permalinks
- using post_type with meta_query
- How can I set up the URL for a category archive for a custom post type?
- How to display only taxonomies of custom post type in a page?
- List a custom post type’s posts ordered by nested custom taxonomy
- Custom Post Type Template based on Taxonomy
- 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?
- Author template – separate custom post type by custom taxonomy term for $curauth
- Custom Post Type order Title ASC
- Custom posts and custom taxonomies for many products and categories?
- custom post type tags
- Structure of custom post type / taxonomy?
- get_the_term_list() wanting to loop through the returned values
- List custom taxonomy terms
- Displaying child taxonomies
- How do i get the taxonomy term name on the CPT archive page?
- Single and Archive Pages with Custom Post Type
- Query multiple post of which one by taxonomy
- Echo post count of CPT with current taxonomy
- Sharing a custom taxonomy – No posts?
- See the process of creating a taxonomy and tell me where I made a mistake
- Display associated taxonomy child name on single CPT page
- show only one category posts in admin
- Issue On Listing Woocommerce Parent Tag List
- Get all active posts that are tied to a custom taxonomy for a custom post type
- How to dynamically register custom post type
- Store custom post type with JSON content
- querying to custom field over ACF REST API
- Create settings page to enable or disable CPT
- How to add to taxonomies to a post type
- Get all posts of any post type in a category from REST API
- Filtering custom post types using category taxonomy
- Is there a function that replace category name with a icon?
- Taxonomy listing issue – does not display how I would like
- Show custom category archive as front page and remove taxonomy slug from urls
- Make term slugs of custom taxonomy available in WP REST API for custom post type?
- Is it possible for post and custom post type to share a category base slug?
- custom taxonomy not return in the code
- Custom post type REST api 404: Updating failed. No route was found matching the URL and request method
- upload image with rest API to the media library
- How do I get parameters from the URL?
- How can I rename custom taxonomy if multiple custom post type have the same taxonomy name?
- Taxonomy Archive URL + Template
- Show only taxonomy types terms associated with a custom post type in WordPress PHP
- Can’t expose custom field to REST API
- Passing total post count to javascript
- rest_api_init is not getting invoked inside a Class
- Load more post with AJAX
- Taxonomy term archive claims there are no posts, but there are. How to resolve?
- Get a custom post type’s taxonomy type term names displayed as checkboxes and filter
- REST API callback function is not called
- Category display using conditions
- How to display posts from home page in blogs in category wise
- Separate archive template to show posts and CPT by same category/taxonomy
- How to get taxonomy category in permalink for each taxonomy OR How to give a parent page to a given taxonomy?
- How to list custom taxonomy terms without the hyperlinks?
- Post current post type to my Ajax
- Linking and embedding two custom post types with the REST API
- One custom taxonomy with unique sets of labels for two post types?
- Ajax load more post button not showing
- How to Filter the Custom term loop based on dropdown
- How to change default taxonomy for CPT only (not posts)
- Can’t retrieve custom post type taxonomy term to custom post type editor
- Add taxonomy or category slug to custom post types URL