array(
'relation' => 'OR',
array(
'key' => 'status',
'value' => '', //<--- not required but necessary in this case
'compare' => 'NOT EXISTS',
),
array(
'key' => 'status',
'value' => 'new',
'compare' => '=',
),
);
That should do it.
Related Posts:
- Can I query custom meta data through WP_Query
- Meta Query with AND & OR?
- Trying to perform complex custom field query with order by set to field value
- Compare meta_query decimals not working right
- How can I combine meta_query queries?
- Difference between ‘LIKE’ and ‘IN’ in meta queries
- WP_Query display next custom post from today’s date
- Meta query with timestamp using WP_query
- Meta Query And/Or
- Query post by date (stored custom field meta as yyyymmdd) and differentiate across 12 months
- How can I modify my meta_query to work with prices that are stored in the database that contain dollar signs and commas?
- WP_Query – Order results by meta value
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- Meta query with string starting like pattern
- compare meta_query in get_posts arguments
- Filter WP_Query for posts having a certain meta-value
- Add custom fields to search
- How do I search an array stored in a custom-field using WP_Query?
- querying with custom meta field with meta_query
- Order by meta_value_num DESC and meta_value ASC on WP 4.0
- Is there a way to do multiple ordering on a multiple meta_query?
- How to get a meta value from all post
- WordPress altering my custom query, How to fix it?
- Ordering posts by anniversary using only day and month
- Calling Specific Pages with wp query Part II
- Comparing timestamps in meta query doesn’t work
- Display two post types ordered by two custom fields
- Order by meta_key in custom post type doesn’t affect the query
- How can I query on the year part of a complete date in a custom field?
- WP_query : meta_key with custom rule for specific value
- meta_value_num sort glitch
- Order by value in serialized custom field
- Which is best in the following scenario : post_meta vs custom table vs parent/child posts
- Author Page Custom Query WHERE author OR [post meta value] OR [post meta value]
- Order Posts by meta value AND published date
- Sorting posts by custom fields in meta_query
- meta_query for a string inside a meta field containing a comma-separated list
- Order by custom field value not working for acf date field
- Upcoming Event: How do I sort database by custom date field, but ignore past dates?
- How do I use wp_query for WordPress search?
- Orderby custom field meta value ASC and then by date DESC
- Conditional custom field query
- Order query by meta_value with multiple custom fields
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- wp_query check if integer exists in custom field’s array
- WP 3.1 meta_query for multiple custom field values
- Fetch Record based on meta key dates
- 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
- Get posts with same meta value as current post
- meta_value_num not ordering all items
- Custom WP_Query for WordPress Search Results with meta_query
- Change order of posts
- How to combine custom fields to make one order-able value
- Meta query with multiple custom fields for archives page ordering problem
- filter custom field values $min $max
- Query based on custom fields start and end date
- Ordering posts by custom field named “date” in backend
- Get Data From wp_sitemeta for Multisite network
- Unique meta_key with array value vs repeated meta_key with single values
- Is it possible to retrieve all posts with a certain value for metadata?
- How can I do a variable for meta_query?
- ORDER BY custom field value out of where clause
- comment meta_query for keys that aren’t yet set
- Can’t query by meta_key
- ACF: How to get users with a ACF flexible content subfield with a specific value AND layout?
- change order of images attached to post
- add_query_arg to compare and display events from a certain date
- Custom Query Fields – Altering Meta Value
- Is it possible to compare the current time with a custom “start” and “end date
- How to update custom field of a posts in a particular category
- 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
- get posts based on non-single metadata
- 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?
- Woocommerce products search with custom fields
- How to save multiple values with same meta_key, each value linked to another tag id
- WP Query – grouping posts by same meta key, adding together values from another key
- meta_query is overriding default search
- Comparing Meta Field date in WPQuery using Meta_Query?
- WP meta_query args not working in function
- Query against multiple locations within single custom post type post
- Meta_Query refuses to return results
- Create Shortcode shows only posts with custom_field meta
- Custom WP_query and integrating into theme file
- Query events post type after current date and timezone
- meta_query ‘compare’ => ‘!=’ not working
- Using custom field as ‘orderby’ value causing post grouping by publish date
- Create custom query for search?
- Filter query based on date in custom field
- query post based on comparison
- WP Query multiple select form – meta_query help
- WordPress Meta Query: Relation is not working correctly
- Display posts where date field matches current month?
- Show posts containing or not custom field
- Filter Query Post by Custom Fields(by date)
- Get posts by meta value except one post [closed]