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?
- Custom post types filtered by taxonomy using REST API v2
- Fetch All Posts (Including Those Using a Custom Post Type) With WordPress API
- Custom Taxonomy as Dropdown in admin
- Show custom post type endpoint in REST API just if user has capability
- Retrieve single term slug
- 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?
- List taxonomies with thumbnails
- How to force Authentication on REST API for Password protected page using custom table and fetch() without Plugin
- 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?
- Custom Post type taxonomy single templates
- Use the_taxonomies() to create a simple list
- Listing taxonomies from custom post type
- Custom post type with specific category structure
- Wp Rest API request posts from a custom taxonomy
- Permalinks for Taxonomy and Custom Post Type
- 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
- Change or update WordPress loop based on dropdown selection
- Very simple wordpress block to display posts from an api call
- How do I get the intended post type of a revision post?
- Using The REST API How To Pull All Custom Posts?
- Custom Taxonomies not appearing in Admin
- Custom Post Type Set Comments ON by default without show METABOX
- How do I do this with WordPress? Taxonomies?
- Can taxonomies of custom post types be used with category actions?
- Limit amount of posts made within a custom taxonomy
- Issue on Creating Custom Tax Term Dynamically From Another CPT Meta-box On Publish
- 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
- Set a CPT slug as a base name for all the taxonomies
- 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)
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Taxonomy in URL
- How to organise this data within WordPress
- How to Set Taxonomy Object Description?
- Custom select query for taxonomies that have posts categorized in another taxonomy
- Variable not working in WP_Query
- Associate all Custom Post Types with Taxonomy
- Alphabetically sort a taxonomy.php template by post title
- Show Taxonomies with admin area for custom post type?
- Custom REST endpoint not working to retrieve single posts (“rest_no_route”)
- How to handle new post from API request?
- wp-json API: not logged in when clicking link to the API from admin mode
- Running a custom query inside another cpt single and trying to grab a variable
- Get posts by category name
- Get post-meta value of all custom-posts – lowest to highest year-count?
- Query all posts under one taxonomy? Why is my code not working?
- CPT archive with WP native/core tax/categories
- How can I create new CustomPostType record using wp.api.collections?
- Custom endpoint filtering post by custom taxonomies
- Order posts by taxonomy terms
- wp rest api orderby field in a custom table
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- URL issue retrieving Custom Post Types using Backbone JS API
- Define multiple prefixes for custom post type
- Taxonomies are not showing in the category dropdown
- Change custom post taxonomy values from front-end
- Saving custom post types post_meta over REST-API fails
- How to transfer categories (default) to custom taxonomy?
- Taxonomy to Post Type. Every Taxonomy Item can be Producer or Developer
- Custom Taxonomy – fields
- Pages of my taxonomy terms are showing all posts
- Reuse the “category” slug for a custom post type
- How to create TEMPLATES for TAXONOMIES? What I have to change in this code?
- Sorting on Taxonomy in archive page
- Create an additional template page for every term taxonomy
- Displaying taxonomy icon outside archive page
- Taxonomy Grid Archive Help?
- Query Distinct Taxonomies of Custom Post Type
- Show taxonomies from specific CPT
- List a custom post type’s posts ordered by nested custom taxonomy
- Author template – separate custom post type by custom taxonomy term for $curauth
- See the process of creating a taxonomy and tell me where I made a mistake
- How to add to taxonomies to a post type
- Filtering custom post types using category taxonomy
- custom taxonomy not return in the code
- How do I get parameters from the URL?
- Load more post with AJAX
- Can’t retrieve custom post type taxonomy term to custom post type editor
- Add taxonomy or category slug to custom post types URL