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
- How to compare Event period with Week period using get_posts(), meta_query, relation and compare
- How to do a meta query using REST-API in WordPress 4.7+?
- Use REGEXP in WP_Query meta_query key
- Meta query terribly slow
- meta_query sorting by 2 keys
- meta_query: using BETWEEN with floats and/or casting to DECIMAL
- Get result from meta_query() between two numbers
- How to handle optional end date in compare clause in meta_query
- Using meta_query on pre_get_posts to exclude a particular meta_key value
- Meta compare with date (stored as string) not working
- Getting attachments by meta value
- Query between two meta keys
- Ordering posts having multiple post-meta date fields
- How do you get posts by meta_query using the JSON API plugin?
- Archives for custom post type based on a “date” meta value
- Query all posts where meta value is empty
- Custom Queries: Joining On Meta Values From Two Custom Post Types
- How to check a single number value against an array of meta_key values?
- How Can I save multiple records in same meta key?
- get_users meta_query
- Meta query with multiple logic (AND / OR)
- Best practice – Meta Query vs. post_clauses for “left join” ordering
- Meta query interfering with orderby relevance
- meta_query with multiple values
- WooCommerce conditional meta query
- Meta Query with date and time on the same Day before given time
- Different page parameters inside query
- Return posts with specific meta key first, but the rest in alpha order by last name
- How to update single value in multi dimensional Post Meta?
- meta_query key value from array
- What is an efficient way to query based on post_meta?
- LIKE %…% Meta Query
- WP_Query not working as expected for attachments and custom meta_query
- I can’t set meta_key in my custom post type query
- Multiple Values stored as array in Meta Query
- Order by nested named meta queries with ‘exists’ and ‘not exists’
- Advanced orderby with multiple meta_query
- Arrange Posts By Date In Order Of Closest To The Current Date
- Using get_terms() with meta_query parameters
- How can I create a WP_Query that returns posts where one meta_value
- WP_User_Query with meta_query array relation ‘OR’
- Comparisson between date() and a date from wp_postmeta
- WordPress altering my custom query, How to fix it?
- Ordering posts by anniversary using only day and month
- WP Meta Query for some meta (array) values
- Can’t sort order of wp_query with 2 meta keys
- Loop through two different sets of custom fields
- WP Query post meta value
- get_post_meta causes database queries
- How to display liked posts of current user in wordpress?
- How to get sum of meta_values of a meta_key in wp_query according to conditions
- meta_query problem
- Custom Upcoming Events List for Events Manager Plugin
- Very slow query with meta_query on large database
- How to use meta_query to check if a meta field has something set?
- Get posts by meta value with date
- Order posts according to user defined order for meta values?
- Displaying posts with only upcoming dates according their custom field date value
- meta_query date and time comparisons
- Exporting Data from WordPress into a flat table
- How metadata API works?
- Order posts by meta value and Date
- How to exlude posts that have certain meta_value?
- User Relationship
- Displaying Metabox value (custom post type taxonomy)
- meta_query results not the same with and without spaces
- Which is best in the following scenario : post_meta vs custom table vs parent/child posts
- meta_query all posts between to ages
- How to make a WP REST API query with meta_query in WP4.7?
- WordPress Core – Optimizing meta_query generated SQL?
- Edit post_content on posts with Featured Image
- Ordering posts by metadata
- What Is meta_id In wp_postmeta?
- Remove posts from query for events whose start date has passed
- Nested Queries using meta_query
- Display no post when metavalue is 0
- Use both meta query and tax query
- Wildcard with LIKE operator in Meta query
- Get meta info related to current post
- meta_query, number comparison, not quite working as it should
- Meta Query Compare with Date
- Query posts only if meta_value is not empty
- Query metas (and not : query posts by metas)
- Does meta_query working with value paramater higher then 999?
- meta_query keys and sticky posts
- Searching by meta values showing inappropriate result
- How to stop wp_postmeta from being called on archive and search pages?
- WP_POSTMETA – What do these values mean inside the data structure?
- How to pass user meta_key and meta_value (values as array)
- WP_Query ordered by meta_value_num doesn’t fetch posts without this meta field
- How to make Meta Query case sensitive?
- Performance when getting post meta for post retrieved by meta value
- Query Multiple values for same key
- Get attachment by meta_key value