I have this query
<?php
$post_args = array(
'post_type' => 'tribe_events',
'eventDisplay'=>'past',
'tax_query' => array(
array(
'taxonomy' => 'tribe_events_cat',
'field' => 'slug',
'terms' => 'compliance',
),
),
'meta_query' => array(
array(
'key' => 'associated_people',
'value' => $current_user,
'compare' => 'LIKE'
)
)
); ?>
It calls all events from the past but I need it to only pull past events that have dates from the last 12 months from the current day, is there any way I could do this?
I'm using the events calendar pro
Thanks for any help in advance!
post_date
field? Is "current day" = today?