I'm limiting my query to use show post from 6 months ago which works fine.
But I need it to be based on a date that is in the post_meta
table instead of 'post_date_gmt'.
In my case I have meta_keys are called payment_date
and the values are of course a date like 31-10-2016
for example.
$months_ago = 6;
$args = array(
'date_query' => array(
array(
'column' => 'post_date_gmt',
'after' => $months_ago . ' months ago',
)
),
'numberposts' => -1
);