Using this REST API End Point https://example.com/wp-json/wp/v2/taxonomies
I found I had 3 Taxonomies available post_tag
, category
and series
.
After seeing series
, a custom post type, I knew I had something missing in my code.
I finally found an article Working with Custom Post Types in WP-API v2 which describes my issue. Apparently in API V2 there are some new arguments added in for the REST API. The specific argument I needed was 'show_in_rest' => true,
and by adding it into my arguments array resolved my issue.
$args = array(
'labels' => $labels,
...
'show_in_rest' => true,
...
);
register_taxonomy( 'theme', array( 'post', 'resource', 'podcast' ), $args );
More information about this can be found in the codex https://developer.wordpress.org/reference/functions/register_taxonomy/
Related Posts:
- Custom post types filtered by taxonomy using REST API v2
- How do I Filter Custom Post Type by Custom Taxonomy in the newest WordPress RESTful API?
- Templates for Custom Post Types and Custom Taxonomies
- Querying Posts by Taxonomy From Alternate Network Site
- How to add custom fields to admin UI and REST API response?
- Wp Rest API request posts from a custom taxonomy
- Custom Post Type vs. User Page
- How to see posts in taxonomy endpoint
- REST filters only firing when I have a param set
- WordPress multisite – is it possible to have different taxonomies for each site?
- WordPress REST API V2: “{CUSTOM_POST_TYPE} matches Term ID List and Term ID Taxonomy Query, but should match only one.”
- Custom endpoint filtering post by custom taxonomies
- Adding a Section for Visitors
- install.php Custom Taxonomy Term not being added to custom post
- Make term slugs of custom taxonomy available in WP REST API for custom post type?
- Can’t retrieve custom post type taxonomy term to custom post type editor
- Why get_posts() not returning only selected category posts from Custom Post Type?
- wp_insert_term in a multisite installation
- Get template part using a custom taxonomy term
- Retrieve value of a category’s custom field
- Custom Post Type / Two level deep taxonomy (cat. and subcat.) uri problem (error 404)
- Archive for custom taxonomy lists all posts instead of current taxonomy
- Genesis filterable portfolio isotope [closed]
- Adding a custom post type taxonomy template in plugin
- Get post from custom post type order by two taxonomies
- Loading custom content type from ajax results?
- Get posts by querying taxonomy and certain terms of the taxonomy?
- How to restrict users and admin from creating new taxonomy terms?
- Posts from all the categories are being displayed instead of particular category
- How to save custom taxonomy from front end post submission
- How to set up multisite for multi language?
- How to convert custom post type based list to a dropdown list?
- How to add a custom taxonomy to show up in a custom post type menu?
- Overriding taxonomy and custom post type
- Get next and previous 3 posts in a term in single post page
- wp_query check if integer exists in custom field’s array
- Customize Query for post
- Custom post type templating problem
- Correct classes for WordPress menu items
- Wrong request query on cpt and tax
- How can I see a list of my Custom Post Types of the last term I was in?
- Custom Taxonomies not appearing in Admin
- Custom Post hierarchical to custom taxonomy
- Custom Taxonomy Navigation, with current menu items for children?
- Search Custom Post Type & Taxonomies
- Getting a PHP Notice when using Pods with WPML [closed]
- Deleting Custom Taxonomy Term only increments tag_ID
- Custom Post Type doesn’t show Draft and Trash Options
- Conditional Statement custom post type category
- Multiple portfolios and single item in two of them (ideas?)
- Custom Post Type With Categories
- Get custom post type list for every category shortcode
- Loop custom taxonomy to get lists of cutom post types?
- Custom post type structure for posts with multiple child posts
- Get custom taxonomies from multiple posts
- Hierarchical Custom Post Types in Array
- Making certain categories of CPT not publicly queryable
- Pagination for Custom Taxonomy Page [duplicate]
- How can I make a custom post type sticky?
- Missing Posts in Custom Taxonomy List
- Custom Post Type permalink shows wrong page: homepage/index.php
- Search / Filter posts on Title/Content OR Tags
- using $wpdb to get custom post type with term
- Custom Post Type Taxonomy Filters
- Query with no terms uses index.php template instead of archive.php
- Custom Taxonomy Doesn’t Show Up
- Categories sorting
- Mapping Subdomains in WordPress to give the appearance of a localised site, best approach?
- WP_Query most viewed posts, in multiple Post Types, last 30 days, excluding a specific taxonomy term
- Show posts from two or more custom taxonomy terms
- Customize my custom taxonomy table in Admin panel
- Allow user to set custom order to a list of custom taxonomies?
- get_category_parents for custom post type taxonomy
- Custom-Posttype & Custom Taxonomy WP_Query
- Custom loop with multiple taxonomy queries
- How to use custom taxonomies to reference complex relationships?
- Disable block with taxonomies at post page
- Return one unique custom post type result when it shares a custom taxonomy in WP_QUERY?
- Displaying custom taxonomy in the admin list of a custom post type
- Get parse_query filter to return slug instead of id
- Tax query not producing any results
- Custom post type and taxonomy – show related posts
- search also in taxonomy, tags and custom fields
- Create template for taxonomy results limited by Custom Post Type
- wp_list_categories() – current-cat class also inside posts?
- Showing the custom taxonomy parent term and child term of a post
- Custom Taxonomy Archives on Custom Post type Page [duplicate]
- Query Custom posts of same taxonomy as the post itself
- Custom Post Types, URL rewrite on multiple CPTs
- redirecting improperly after updating custom taxonomy term when referring from CPT edit page
- Template for custom post with custom taxonomy
- Best way to save horoscope data
- Which post does a taxonomy term belongs to?
- How can I set taxonomy programmatically
- How to hook custom taxonomies to custom post types and make the permalinks work?
- Custom post type multiple loop by taxonomy term
- getting all values of a custom taxonomy if there is no post
- custom types taxonomy hide_empty
- Help need making decision. Ads rotating site on wordpress
- Extending AZIndex plugin to use custom post types and custom taxonomies