I store a date type stored by ACF Pro in custom meta "event_date" and I want to filter event by months with a query. The data is stored in
I know that I need to use meta_query array like this :
$args['meta_query'] = array(
array(
'key' => 'event_date',
'value' => ?,
'compare' => '=',
'type' => 'DATE'
)
);
But the meta query
allows to compare with a full date. How to compare if the month variable (number 1 to 12) is the same that the event_date
meta month ?
Thanks