Current state code
array(
'post_type' = > 'post',
'post_status' = > 'public',
'after' = > date('Y/m/d 0:0:0', strtotime('-3month')',
);
I was doing this, but with this, do you only get articles that are more than three months old?I realized that
What should I do if I only get articles with an update date of less than 90 days?
I was able to use date_query
'date_query'=>array(
array(
'column' = > 'post_modified',
'inclusive' = > true,
'after' = > date('Y/m/d 0:0:0', strtotime('-3month')',
),
),
© 2024 OneMinuteCode. All rights reserved.