The field
parameter in the tax_query
should be set to slug
as it seems that you are passing the term slug. Any value passed to field
except slug
or name
will cause the field
parameter to default to term_id
.
Always remember, the value passed to field
should match the what is been passed to terms
, so, if terms
is term slugs, field
should be slug
EDIT
Final solution from OP taken from comments
$args = array(
'post_type' => 'schedule',
'posts_per_page' => 15,
'tax_query' => array(
array(
'taxonomy' => 'schedule_day_taxonomy',
'field' => 'term_id',
'terms' => 1278
)
)
);
Related Posts:
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- Get list of CPT posts in *current* post’s taxonomy term
- Get Posts by Custom Post Type ,Taxonomy, and Term
- Get The Post Type A Taxonomy Is Attached To
- Display current taxonomy term when inside custom post type
- Get term slug of current post
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- Assign posts to taxonomy terms instead of the taxonomy terms to posts?
- How to limit the number of terms (terms acts like categories)
- How do I list custom taxonomy terms without the links?
- wp_insert_term doesn’t work with custom post type’s taxonomy
- wp_get_object_terms(): count relative to passed IDs?
- Exclude from search all custom posts which are NOT in a taxonomy term
- Not Able to Insert Taxonomy Term Using wp_insert_post()
- array_pop() expects array, boolean given for $event_type_term ->slug
- Maintaining strict one-to-one association between terms and custom posts
- If on term-page -> get the current term?
- Creating a function that receives the taxonomy terms that have been changed in a custom post type
- Get all taxonomies for all post types
- Get the terms of a custom taxonomy for a specific author in author template
- How do I provide a “show all posts” link in a paginated term archive?
- How to get posts from multiple custom post types according to it’s custom taxonomy terms?
- How to output wordpress custom tags separated by comma?
- Displaying a custom post types custom taxonomy value?
- $wpdb: Counting posts corresponding to 3 terms in 3 different taxonomies
- Does WordPress limit the length of slug names for Post Meta or Terms?
- get_post_meta returns empty array for terms
- Update post terms with custom taxonomy
- Custom Post Type Archive Page Filtering
- Filtering WP_Query Dynamically on the Front-End
- Get template part using a custom taxonomy term
- How to restrict users and admin from creating new taxonomy terms?
- using $wpdb to get custom post type with term
- Custom Post Type Taxonomy Filters
- Allow user to set custom order to a list of custom taxonomies?
- Displaying custom taxonomy in the admin list of a custom post type
- How do I display the taxonomy term alongside the post type post title?
- Post count by month of taxonmy term
- How do I display the taxonomy for a custom post type in an array
- How to conditionally redirect to the post from a taxonomy page?
- How do I require the specification of term in a custom post type and custom taxonomy?
- Custom Post, set object Taxonomy terms in plugin
- Custom while loop for hierarchical display of a taxonomy
- Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)
- Display taxonomy terms, child terms and posts in a template
- Use custom walker to add taxonomy terms to main nav menu
- Add term to custom post type on draft
- Listing all term items alphabetically / sorting loop
- How to get WordPress term attached to the Post?
- Get parent category id from child category page for custom taxonomy
- How to get only child terms from a custom taxonomy of current post type?
- How to list tags from custom post type attachments?
- Custom Post Types Archives and Single Pages not showing custom taxonomy data
- Get terms of a post but only if they’re also the child of a specific term
- How to get_term_meta on single custom post?
- The Difference Between Categories and Tags and Taxonomies and Terms
- How to display custom taxonomy term meta on custom post type
- Get the link of the first post of a custom taxonomy in a custom taxonomy list
- I have custom post type with custom taxonomy. But not found the taxonomy page..
- Commas not displaying in implode
- does wp_insert_term link the term to a certain post ID?
- How can I get 3 different taxonomy type terms in a div class element?
- Grab all Custom Posts by multiple taxonomies and terms
- Get terms for a specfic post from multiple taxonomies in custom post type
- Custom Post type Query by Taxonomy
- Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- ACF – Retrieve custom taxonomy from a relationship field
- display post count in archive page that have relation with another taxonomy term
- How to display custom taxonomy term specific post?
- How to associate custom taxonomy terms with custom post type?
- WP_Query not using custom taxonomy categories on custom post type
- get_queried_object not work in taxonomy page
- Change the term based on the value of a $variable using wp_update_post in submitting a form
- get_the_terms child terms for current post/custom post only
- Dropwdown: Get taxonomy terms from posts that share preselected terms from 3 other taxonomies
- Custom Post Type / Taxonomy / Term – what template to use to avoid 404-page?
- Pages of my taxonomy terms are showing all posts
- Display title of all custom posts from same taxonomy term on a custom post template
- wordpress does not see the correct custom taxonomy hierarchy
- Add active class to foundation 6 tabs while looping categories
- Get category list & taxonomy list from different post type using post id?
- How to get all posts related to a taxonomy?
- Error get_posts with Custom Taxonomy and OR relation
- Custom taxonomy- only output relevant terms
- Filter By Term Not Working – Custom Post Type
- WordPress add taxonomies/terms list as a menu in archive page
- Hide Custom Taxonomy title if not associated with another Custom Taxomony
- How to pass taxonomy terms to WP_Query along with $args?
- Custom Post Status & Taxonomies
- Prevent repetitive terms in get_the_term_list
- How to List CPTs Under One Tax Term
- Linking custom taxonomies and posts
- Storing/querying custom date data
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- Display associated taxonomy child name on single CPT page
- How to manage a bookstore
- Get all terms assigned to a post from different taxonomies
- Issue On Listing Woocommerce Parent Tag List
- Taxonomy Archive URL + Template