Try changing the field
value to term_id
, since there is no id
value for that option.
Related Posts:
- When/why does ‘$query->get( ‘tax_query’ );’ return empty?
- Query set using tax_query with relation ‘OR’ modifies category object?
- Get Terms by IDs with IDs order
- Search Terms – Querying on either description__like OR name__like in the same Term Query?
- Custom query to get terms from post ids
- Empty tax_query array returns an empty array
- wpdb->term_taxonomy count posts from both published and private posts?
- Post with certain term and without any term
- Order posts by date, but also give priority for a specific term
- Order terms by count – missing terms
- How can I get the name of term post meta value which equals term id
- Sort query_terms_list for post_tags alphabetically
- List only parent attributes on woocommerce admin atrributes page
- Order WordPress Query by Custom Field While Still Using Tax_query Argument
- modifying main query to query for ranges e.g. from 1999 to 2016
- No results for taxonomy archive page
- Custom query_var causes displaying posts archive on front page
- What is the most efficient way of implementing a favorite post system?
- Why does get_the_time(‘F j’) return November 30 for all posts?
- Query by one meta_key and sort by another (possibly NULL value)
- Very slow query
- Query & Sort Comments by custom comment meta
- is_archive() doesn’t work on public query var archive pages?
- How to count get_users query?
- Possible to get posts from multiple meta keys/values in a single query?
- Difference between fragment caching and wp_cache
- mysql query paging
- How to display all posts with today’s same month and day only?
- Select User by Joining Multiple Meta Value Results
- Show featured image as background image from postQuery
- Using $wpdb->update but confused on the WHERE in and SET
- You have an error in your SQL syntax – Help with query
- Make one query for adding entries to database
- Order query by post meta value
- add_query_arg() and empty variables inside
- Print terms with taxonomy and metabox value
- Query Strings and Woocommerce
- Style Post Differently In Query
- WordPress post type “event” query string fix?
- Display posts with a start OR end date later than current date
- order one custom post type by modified time of another post type
- is_search called incorreclty
- Function to delete a post, it’s children and it’s grand children (half way there already)
- Nested loop : wich way/order?
- Dynamically adjust single-posttype.php query, based on current taxonomies
- Exclude posts with taxonomy term from appearing on home page query
- wp_get_post_terms Order by not working
- Search Query for Multiple Terms In Same Taxonomy
- wp_list_pages() refuses to output posts
- Can’t seem to do combined query AND sort?
- Use mysql_query instead of $wpdb query
- Custom Query – Based on user input
- Change the destination of the URLs in post.php
- Page with custom template make get request to a custom route – Pseudo code
- List custom queried terms in the edit-tags.php?taxonomy page
- Tax query with multiple terms in pre_get_posts
- get_users with array as meta_value
- Get category if used in a custom post type
- How to exclude posts for current user
- Ideas how to search & replace post_content when string contains a newline?
- Valid SQL query return empty
- mysql query – how to escape apostrophe?
- exclude pingbacks from wordpress SQL query
- wp_posts query slowing down my website
- Updating with $qpdb->query() always returns 0 rows affected
- Get the_field of Advanced Custom Fields in a custom query [closed]
- Advanced Custom Fields – Relationship post foreach query
- Query to view scheduled or draft post
- Using in ‘category_name’ in ‘$query->set();’?
- How do I query for posts by custom meta and those that have been stickied?
- Select min/max meta from query
- WordPress query unique post meta – finding all of one value without duplicates for a drop down
- Exclude in get_pages() based on meta field
- Sort a list of a CPT ( job) if a meta is empty
- SQL to Query the db and return all posts and it’s metas
- Query Post interferes with Pagination
- How to do a sql like query on serialized data of user meta data
- My archives page won’t sort posts by month
- Restore WordPress Backup Locally?
- How to get all images in Media Gallery with pagination?
- Attachment page tag queries & posts not found
- Not getting input from get_query_var
- Performance of wp_get_attachment_image_srcset() and wp_get_attachment_image_url()
- How can I get all the posts that are related with a specific taxonomy term?
- YearMonth datequery
- Query Posts that have or don’t have a meta_value and order by the same ASC
- What is the best way to query posts based on live data?
- Why the pre_get_posts hook can cause apache stopped working?
- Sorting of coupons in the right way
- excludeCat function reverses order of blog posts
- Slow query when joining wp_posts with a lookup-table?
- Run search query again without pagination gives no results?
- Using wp_list_table how to trigger update function “inline”?
- Filter multiple different main queries on custom pages
- WP_Query orderby meta key/value suddely stopped working
- WP_Query older new links navigation?
- Where can I find the SQL to get the most used information by wordpress database?
- WooCommerce Total # orders [closed]
- Query filter on custom post by current author in post widget for elementor query id
- Querying Posts from ACF Repeater Subfield Select Value