Opened 15 years ago
Closed 15 years ago
#16735 closed defect (bug) (duplicate)
Querying against empty meta_value should work
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Query | Keywords: | |
| Focuses: | Cc: |
Description
This should work:
$args = array(
'meta_query' => array(
array(
'key' => 'featured_image',
'value' => '',
'compare' => '!='
)
)
);
$query = new WP_Query( $args );
Change History (1)
Note: See
TracTickets for help on using
tickets.
See #16573 See #15292