Custom Post Type Taxonomy not showing
‘post_types’ => array( ‘Food Menu Item’ ) should be ‘post_types’ => array( ‘food-menu-item’ )
‘post_types’ => array( ‘Food Menu Item’ ) should be ‘post_types’ => array( ‘food-menu-item’ )
You can force default terms for a post by using the save_post hook. Here’s an example from the Developer resources originallly by the user Aurovrata Venet. add_action( ‘save_post’, ‘set_post_default_category’, 10,3 ); function set_post_default_category( $post_id, $post, $update ) { // Only want to set if this is a new post! if ( $update ){ return; } … Read more
You might be able to use the the_author_posts_link filter to do this: add_filter( ‘the_author_posts_link’, functoin ($link) { global $post_id; // get “source” tax terms $sources = get_the_terms( $post_id, ‘source’ ); // build html $html=””; foreach ($sources as $source) { $html += ‘<a href=”‘. get_term_link($source) .'”>’. $source->name .'</a>’; } // pre-pend html to author link $link … Read more
Custom Taxonomy in default RSS feed
How to create pagination for custom taxonomy in WordPress
Rewrite Rule Working for all but one of the taxonomies created
Manipulate WP Query using a custom post type and multiple tax_query taxonomies
What is faster: custom taxonomy or serialized post-meta for db retrieval? (over 60,000 posts)
How to limit the number of users who can be added to a user custom taxonomy?
Figured it out. Just needed to make a call like this to get the values of the custom taxonomy for a specific post: https://example.com/wp-json/wp/v2/custom-tax-2?post={id}