The 'field' => 'id'
is not valid.
Try 'field' => 'term_id'
instead.
Related Posts:
- Way to include posts both with & without certain meta_key in args for wp_query?
- How to trigger 404 for custom query var?
- How can I use WP-CLI commands without –allow-root
- Calling a wp_query $posts causes a 500 error
- WP_query taxonomy + get all posts with two terms from same taxonomy
- How do I create my own nested meta_query using posts_where / posts_join?
- meta_query not working properly
- Best Practice For Querying Grandchildren?
- Two queries on the same page with pagination
- Using tax_query reverses my post_type argument in a custom WP_Query
- Best approach to create Hot and Trending sections
- creating wp query with posts with specific category
- $wp_query->current_post restarts from zero on paged pages
- get complex results set according to category structure
- wp_get_post_terms of cpt but not duplicates if they are used more than once in the loop
- How to prevent queried posts from being added to cache?
- Order posts by meta value and Date
- Ignore post by meta value in the main query
- Display posts in 3 days chunk
- How to make orderby ‘meta_value_num’ OPTIONAL?
- How to do a query on custom taxonomies that is uncategorised?
- Empty tax_query array returns an empty array
- How can I query posts with newly uploaded images?
- Conditional arguments WP_Query for post custom fields
- How do I search inside specific taxonomies in WordPress
- Sorting By Custom Posts With Attachments
- Random loop with code to prevent duplicate output returns no output at all from time to time
- Single meta_query query using OR instead of AND in request’s WHERE statement
- How to choose between hooking into per_get_posts or into parse_query
- Woocommerce returns Product post_status as published even tho it is in status draft
- remove query arg from url after set query
- How to loop for every result found in the_content() when using the search query?
- if statement in wp_query arguments
- How can I fix: “Notice: Undefined offset: 0”?
- SQL: What is wrong with the following query (generated by WordPress WP_Query, ordering prices)
- Order By table field comment_status in WordPress > 4.0
- Slow WP_Query for custom post type
- WP_Query Pagination on multiple-loop page breaks WP or doesn’t show up
- Why isn’t my `meta_query` array functioning properly?
- Using hook to use DISTINCT in a wp_query
- Overwrite YoastSEO meta-tags with another page’s [closed]
- Import wp users via one click demo option
- How to restrict the search fields for a specific post type
- Slow queries on a huge database
- Pagination links missing for first link (1) and previous button? How to get pagination links to work?
- Multisite pagination issue by multi query archive 404
- Query with relation and one without relation using multiple taxonomies?
- WP_Query with different postmeta filter for each categories
- Automatically Query Parent Taxonomy
- Shouldn’t I be able to modify the main query by this filter?
- WP Query crashes on more than ~ 2000 posts
- different for loop if screen resolution < 1000px
- insert value from html into data base with wordpress
- Debugging wp_query orderby for taxonomy
- Get all posts which was posted on X Days WordPress
- Pagination is not working with custom query inside a homepage template
- How to load a script code only in posts?
- Display posts with specific value first in query
- wp_query comment and meta query
- Show menus to one admin username
- inserting content of 1 Post to in another with a template hierarchy
- Get the child category ID of current category
- I need to run a AJAX Fuction from within a WP_Query but only works on first item
- Find only those galleries with images
- WQ Query post meta date comparison
- Category not being selected
- WP_Query with 4 post meta field arguments gives 500 internal server error
- Limit number of posts in WP_query per month
- What’s missing in this wp_query and meta_query
- Tax Query on product_cat using NOT IN as operator does not exclude that category
- How to use the Term Object from a custom select field in a query
- Random users always showing same 8 users
- whether a nonce is required for get type and get_query_var?
- How can I re-query post_type and rewrite the url?
- Wp-query and column blocks
- Sort posts on custom field AND after that sort on date?
- Get last child of given page by ID
- How to query users by post count no less than 10
- display the children of the post using the current page as the main parent
- Display 3 levels of categories on page
- Showing most popular post of week
- Related Post by Tags Code
- I can’t get post based on its postmeta value and key
- Display three sequential posts on each page load, without repeating previous
- Find by post_meta, then sort by post_meta, then sort by date (wp_posts)
- Optimising amount of calls to custom fields
- Issue in If else condition [closed]
- The sorting of posts by a meta_query with two keys fails while separated as single queries it works
- Extract video content from post to display on front page
- Hierarchical List Pages as a table
- WP_Query with several meta_query-statements and order by meta_value
- query_posts, oderby meta_value & print “future” posts
- Second wp_query doesn’t appear to be working
- difference between methods of query
- post__in not recognizing multiple IDs
- Related posts with WP_Query
- wp_query loop with compare operator simply not working, why?
- How to replecate the _fields parameter in custom REST api endpoint
- I want to capture the last day’s (today) posts in a category in the numbered order in acf
- How do I have multiple metaqueries inside one wordpress query