You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding value type comparison would allow filtering by post meta compared as type. Example WP_Query args using dates in post meta which I would like to achieve:
[
'post_type' => ['post', 'event'],
'meta_query' => [
'relation' => 'AND',
[
'key' => 'show_in_bulletin_section,'value' =>'yes'
],
[
'key' => 'show_in_bulletin_section_until',
'value' => date('Y-m-d', strtotime('-1 day')), // includes today in results//'value' => date('Y-m-d'), // today would not be included'compare' => '>',
'type' => 'DATETIME'// <- This is not possible with the plugin AFAIK
]
],
]
Wondering how well this could be achieved while avoiding to allow user inject PHP via value fields. Maybe some preset values could be used as in #54.
The text was updated successfully, but these errors were encountered:
Adding value type comparison would allow filtering by post meta compared as type. Example WP_Query args using dates in post meta which I would like to achieve:
Wondering how well this could be achieved while avoiding to allow user inject PHP via value fields. Maybe some preset values could be used as in #54.
The text was updated successfully, but these errors were encountered: