You could try this:
$args = array(
'post_type' => 'cqpp_interventions',
'posts_per_page' => '-1',
'meta_query' => array(
array(
'key' => 'priority',
'value' => '80'
)
)
);
The real issue with your query is because you are passing meta_key and meta_value. However, the arrays in your meta_query argument should have the keys key and value instead.
This would also work:
'key' => 'priority',
'value' => array('80')
Related Posts:
- Meta query with string starting like pattern
- compare meta_query in get_posts arguments
- Getting attachments by meta value
- querying with custom meta field with meta_query
- Order by meta_value_num DESC and meta_value ASC on WP 4.0
- WordPress altering my custom query, How to fix it?
- Querying by taxonomy vs Querying by Custom fields Speed Comparison
- Order by meta_key in custom post type doesn’t affect the query
- Order Posts by meta value AND published date
- How to make Meta Query case sensitive?
- Fetch Record based on meta key dates
- Meta_query with multiple keys and multiple values
- meta_query BETWEEN, but the range is stored in the custom field
- Extend product search with meta in WooCommerce
- how to make members list directory through wordpress post custom meta key.
- Large AND OR query timing out
- meta_value_num not ordering all items
- meta_compare not comparing whole integer
- Display posts with specific value first in query
- Get every post with value in meta key
- add_query_arg to compare and display events from a certain date
- Comparing 2 Decimal Numbers from custom fields and displaying posts
- meta_query weird behaviour, static int will work, but not user data
- Query multiple post types, but different order for each
- Order by the first array within a meta_query
- Query ACF relationship field – Comparator IN – Value array
- ACF: How to query for a given value count of an array like field? (e.g.: How many rows has a `flexible_content` field?)
- How to _GET multiple value checkbox WP_Query in Custom Toxonomy / Custom Fields
- How do i create a custom post query when the meta value is an array?
- WP Query – grouping posts by same meta key, adding together values from another key
- meta_query is overriding default search
- Trouble with serialized metadata
- Comparing Meta Field date in WPQuery using Meta_Query?
- Getting posts by custom field value
- Query against multiple locations within single custom post type post
- WP_Query, ACF field and array
- Order by Date Custom Field
- Query by meta value (add a dropdown of all values)
- Order Posts By Custom Field That is an array of objects
- Custom WP_query and integrating into theme file
- Using custom field as ‘orderby’ value causing post grouping by publish date
- Compare meta key separation
- query post based on comparison
- Get posts by meta value except one post [closed]
- How to get products with the same custom attribute like ean code
- Nested meta_query with multiple relation keys
- ACF Relationship Field Search Filtering [closed]
- Sorting posts by custom date fields (non standard date format)
- Query Multiple Post types each with own meta query
- ACF datepicker meta_query Compare Dates in m/d/Y g:i a – Not in Ymd Format
- Is “orderby” in WP Meta Query conflicting with Meta Query?
- Query two post types and order by two different date fields
- WP Meta Query for some meta (array) values
- Sort users by meta_value_num
- meta_query with array as value
- Using OR in WP_Query negates the “NOT EXISTS” compare
- WP Query – Get WooCommerce Products with variation that is in stock
- Meta_query with or without value
- Meta-value query
- Meta query field order together with post_date order causes posts without the meta field to be unordered
- Display link to taxonomy archive only if it has posts with certain custom field values
- Undefined property: WP_Query::$post
- Programmatically set ‘meta_query’ for filter
- WP_Query meta_query >= date
- Extending woocommerce admin product search
- Complex Orderby Parameters: How to query with multiple orderby parameters using meta_value_num?
- WP_Query: include custom post type only with specific meta value
- Adding an array from a query string to a WP meta_query
- Query by multiple meta elements not seeming to work – wordpress is timing out
- How does one perform a sub query with different post types
- Possible to filter custom post type with multiple meta data?
- Is this meta query problematic?
- Appending to existing WP_Query’s meta_query if exists
- Custom query filter by ACF date custom field
- Excluding posts with certain value of meta_key keeping posts without that meta_key
- Error in meta_query not get result
- Sorting posts by Multiple custom fields in defined order
- How to get current page nearest parent id?
- meta_query with array as value with multiple arrays
- meta_query – check for multiple meta values in key which holds an array of values
- Searching for a specific month in a metadata saved as Timestamp (Wp_Query)
- meta query multiple values for the same key
- WP_Query on custom key and value
- Get posts having meta value between two numbers
- How to set meta_query if get_post_meta returns nested array for that key? [duplicate]
- Custom post types – meta_query: search lesson which starts sooner
- From admin edit user page query either the user_nicename or username field value of the user profile being edited or viewed
- WP_Query returns empty if meta_query has more than 7 values
- WP_Query with Pagination and orderby meta_value_num showing duplicates
- WordPress meta_query not working
- Using orderby with 2 meta keys
- query_posts with sorting on a custom datestamp
- Passing conditional arrays to WP_Query() [closed]
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- Display all custom meta field values from the database using ACF Repeater
- Get all user with both meta_value
- WordPress extremely slow when using get_posts with multiple meta_query relations
- Use value from meta key array for use in WP_Query
- WP_Query sort by ACF date field (newest first) with blank dates first
- WP_Query not using relation key as expected and not producing any results