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