The meta_query parameter always need to be an array of array and should be written like this
"meta_query" => array(
array(
"key" => "_fixtures",
"value" => $fixguid,
"compare" => "="
)
In fact, the array of array is use to serve to any relation when you want to query multiple metas, but it’s need even you query only one.
Hope it works after !
Related Posts:
- Documentation for post meta
- Documentation for post meta
- get_posts( $args ) return empty data
- Get Posts from Custom Meta Query
- How to get meta value based on latest post id with group by term name
- Sorting not working with get_posts
- Get result from meta_query() between two numbers
- Archives for custom post type based on a “date” meta value
- How Can I save multiple records in same meta key?
- get_users meta_query
- Meta query interfering with orderby relevance
- meta_query with multiple values
- Return posts with specific meta key first, but the rest in alpha order by last name
- What is an efficient way to query based on post_meta?
- Using get_terms() with meta_query parameters
- WP_User_Query with meta_query array relation ‘OR’
- Can’t sort order of wp_query with 2 meta keys
- Loop through two different sets of custom fields
- get_post_meta causes database queries
- How to get sum of meta_values of a meta_key in wp_query according to conditions
- meta_query problem
- meta_query date and time comparisons
- How metadata API works?
- Order posts by meta value and Date
- How to exlude posts that have certain meta_value?
- Which is best in the following scenario : post_meta vs custom table vs parent/child posts
- WordPress Core – Optimizing meta_query generated SQL?
- Ordering posts by metadata
- Display no post when metavalue is 0
- Get meta info related to current post
- Meta Query Compare with Date
- Does meta_query working with value paramater higher then 999?
- meta_query keys and sticky posts
- Get attachment by meta_key value
- Get posts between custom dates
- How to query post only with different excerpt?
- Large AND OR query timing out
- Get posts with multiple meta values
- How to use meta query for greater than value in array?
- Wp Query custom search by meta query
- get_post_meta slowing down my page load (in a plugin)
- get_posts in meta box dropdown not showing latest posts
- Filter posts by meta query?
- Ordering posts by custom field named “date” in backend
- Meta query date column add [x] days to validate
- Get only used meta_values
- Look up all posts by status or meta value – performance difference
- Orderby doesn’t work like expected on custom query
- Order by meta value pro first then meta value free in my search function
- I would like to have add_post_meta to return the ID instead of true or false
- change order of images attached to post
- Save meta data with post, Without using any plugin [closed]
- Woocommerce: order posts by meta key
- Can I use pre_get_posts to add up values from two different meta_keys?
- get_users with Serialized Custom Meta Value
- Sorting posts by ACF field
- latitude/longitude meta_query
- Search post overlapping dates – meta_query with meta_key
- get value from get_post_meta then reuse it in another get_post_meta
- Delete all posts with a specific custom field using meta_query
- Filter images from media library by guid meta field
- meta_query Array
- Issue with user meta_query
- Get_post_custom not fetching value from array wordpress
- Search for value(s) in meta field for a multi select
- How to improve my non-unique metadata MySQL entries?
- Meta query ignores multiple values of the key
- Trouble with serialized metadata
- How can I create a meta_query with an array of dates?
- How to count items of meta query?
- Query against multiple locations within single custom post type post
- WordPress meta query with meta serialized data array value
- wordpress meta query with multiple meta condition causing a load on server and slows down the server..!
- Memory Leak in Processing Large JSON file
- meta_query not filering but meta_key works fine
- like_escape notice when using LIKE in meta query
- meta_query for user ID in array
- Saving custom fields for WP_Query to retrieve
- How to show all the associated posts with specific date of data metabox?
- Display query post based on two orderby value in wordpress
- Using get_posts, I need to use a combination of OR & AND relations
- Retrieve posts from meta key
- WP_Query Posts by Metadata from Option Tree
- Querying by meta key and value
- How to compare date in post meta value
- Which Meta Query Compare Method Should I use?
- Check whether attachment ID is associated with more than one post?
- Sort posts by post views and consider meta key
- How to output meta_key in wp_postmeta?
- Querying meta values within an array
- Display post’s description and caption
- Get_term with meta_query
- NewsPaper WP Theme – Additional Related Posts Filter by Time (divTag composer)
- WordPress Meta Query very slow with NOT EXISTS comparison
- WordPress extremely slow when using get_posts with multiple meta_query relations
- ACF meta_query field treated as “0” resulting in false negative search when testing ranges
- Is it possible to customize meta query in this way?
- Ordering WP_Query results by second meta_key
- How making a new search box in admin post table working on a specific column
- wp_user_query with meta_value_num for leaderboard