[wp-hackers] meta_query using the same key twice.

Daniel Cameron dan at sproutventure.com
Fri Jun 3 00:51:19 UTC 2011


Is something like this possible?
$args=array(
'post_type' =>'special_stuff',
 'post_status' => 'publish',
'meta_query' => array(
 array(
'key' => '_expiration_date',
'value' => '-1',
 'compare' => '='
),
array(
 'key' => '_expiration_date',
'value' => current_time('timestamp'),
 'compare' => '>='
)
)
 );

Seems like this should have been covered already but I can't find anything.


More information about the wp-hackers mailing list