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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -