If you are retrieving post(s) by ID, then why do you need terms in query? Post IDs are unique. You likely need post type (because it’s not default), but taxonomy terms only add confusion to the mix.
Update
Noticed after you added second code sample – post__in
has two underscores in it, your examples lack one more.
Related Posts:
- How do I exclude a custom taxonomy from the post loop
- Filtering custom taxonomies
- Using WordPress to make a “Product Search” type navigation drilldown
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- get_query_var(‘paged’) always returns empty
- search query within custom taxonomy term, post title and meta field
- Showing posts by collection of specific terms and texonomy
- Problem with query_posts for a custom taxonomy in theme options
- Link to most recently created category of custom taxonomy in primary navigation menu
- How to display posts from a single category within a custom taxonomy
- Advanced Tax Query
- Sorting Posts Via Custom Taxonomy Values Using Checkboxes?
- Last posts from custom taxonomy
- Taxonomy.php issue with search and filters
- cannot get multiple loops using tax_query
- Alter post order on taxonomy template
- query_posts and custom taxonomy posts order
- quey posts from different categories with taxonomy
- Show all taxonomy’s terms’ posts having another taxonomy’s term in common
- List Posts For Terms Of A Custom Taxonomy For Any Post Type
- Using WP_Query and Query_post for the loop?
- How to write sql query to get the posts from a custom taxonomy term name
- one post per term taxonomy
- Loop through custom taxanomy in post and display custom fields from posts
- Insert taxonomy slug into loop class
- Using Custom Taxonomies to organise products – struggling to call a correct list
- Group posts in a category based on tags in custom taxonomy
- Transfer taxonomy to custom field
- Can you orderby slug in a taxonomy archive page using WP_Query?
- query posts returns 10 records
- Getting taxonomies specific to categories
- How much worse is querying custom fields compared to custom taxonomies, quantitatively
- Group custom taxonomies based on tags contained in their posts
- How to show to show post list under the specific category name using jetengine query?
- How to modify a taxonomy that’s already registered
- Change order of Custom Taxonomy List
- Contact Form 7 – Populate Select List With Taxonomy [closed]
- How To Change Custom Taxonomy To Radio Buttons
- Page queried instead of a custom taxonomy
- Custom Taxonomy terms with latest post ordered by date pagination issue
- drop-down list another query
- custom taxonomy archive permalink shows 404 error
- get_terms of post->id
- ‘category__and’ for custom taxonomy?
- WordPress renames slug of tags used in multiple taxonomies?
- How to get a list of taxonomy terms which are being used only within certain post types?
- how to search in custom fields & custom taxonomy for custom search
- List Custom Taxonomy Based on Post Count & Category
- Custom taxonomies as product variations
- Echo specific term in an array
- wp_insert_post not updating custom taxonomy selected if logged in as a subscriber
- Print terms with taxonomy and metabox value
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- Create and set templates for custom taxonomies
- Rewrite URL for taxonomy listing
- Return terms from multiple taxonomies using $wpdb
- Creating terms vs custom post meta to save data?
- Sticky posts or Featured posts only on Homepage
- Display custom tags on pages that have a specific page parent
- querying posts by custom taxonomy terms right from a querystring based URL
- How Parent Taxonomy automatically added to the post when using `wp_set_object_terms()`?
- How to set custom capabilities for custom taxonomies?
- Handling Multi-level custom taxonomy hierarchy
- Reverse order of posts in a certain taxonomy archive?
- Using Advanced Custom Fields Relationship Field to select a taxonomy term
- WordPress sub taxonomy template
- SEO Title Tag and Meta Description for custom taxonomy
- query_posts that have custom taxonomy and limiting what shows based on the taxonomy
- W3 total cache – white screen of death when trying to show certain taxonomies [closed]
- How to get this value inside RETURN
- Comma separator problem of custom taxonomy
- How can i fix a 404 error when targeting custom taxonomy slug ?
- Dynamically generate category id and store in variable
- Sorting the Loop by Taxonomy Value
- Connect ACF field + custom taxonomy [closed]
- List posts with slug title
- get parent and childs from hierarchcial taxonomy
- Get Highest and Lowest get_term_meta() value from Taxonomy Term
- Custom taxonomies template
- Pre_get_post custom taxonomy combined with custom fields?
- Adding a checkbox field to a (custom) taxonomy
- Custom taxonomy archive template not recognised
- Ignore punctuation marks in taxonomy order by name
- Get the terms of a post
- Resize $term attachment using url
- Product dimensions filter by taxonomy
- index.php Not Showing Custom Posts / Terms
- Custom taxonomy escaping html attr
- How to make my taxonomy URL work?
- How do you search for a post by custom taxonomy?
- How to show/hide a meta box using categories, with a different post type
- Index page of posts tagged with two separate taxonomies
- How to make an sql query to exclude everything but custom taxonomy terms in table wp_terms?
- Use custom field as tag slug
- stdClass::$labels /wp-includes/general-template.php undefined
- Custom taxonomy in short code
- How can I query for all values of a custom taxonomies?
- Returning info from MYSQL table via custom taxonomy
- is_tax not working for custom taxonomy
- Custom taxonomy with custom meta value is not sorting correctly (query returns the same value for orderby regardless of sort column click)