Wordpress Meta Query two values to compare -


is possible compare 2 values meta_query? if value equals date earlier todays date or null

 'meta_query' => array(     $private_check,     array(     'key' => 'event_date',     'value' => date('y-m-d'),     'type' => 'date',     'compare' => '<' // past posts.   ) 

so compare '<' or null

cheers

after quick google search, came across this, seems dealing similar (but not quite) looking at.

i don't have experience this, quick @ wordpress meta-query codex showed following accepted arguments exist:

the following arguments can passed in key=>value paired array.

meta_compare (string) - operator test 'meta_value'. possible values '!=', '>', '>=', '<', or '<='. default value '='.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -