how to show posts that are missing a meta_value
Question
How can I build a query to find posts that DO NOT contain a certain meta key or meta value?
for example:
query_posts( array(
'meta_query' => array(
array( 'key' => 'feature', 'value' => '_wp_zero_value', 'compare' => '!=' ) )
) );
0
2 months
0 Answers
17 views
0
Leave an answer
You must login or register to add a new answer .