How would one get posts that are set to 'future' to display in a loop? I am trying to figure out how to get posts that are in the future months. So if we are in April I want to display posts for May. Think of it as a coming up posts.
I have been looking at
http://codex.wordpress.org/Function_Reference/WP_Query#Date_Parameters and I have been looking at this too:
Something like this but for next month's post:
<?php //get an array of the date 2 days from now $twodayslater = getdate( current_time(‘timestamp’) + 2*DAY_IN_SECONDS ); $args = array( 'date_query' => array( 'before' => array( 'year' => $twodayslater['year'], 'month' => $twodayslater['mon'], 'day' => $twodayslater['mday'], ), 'inclusive' => false, ), 'post_status' => 'future' ); $query = new WP_Query( $args ); ?>
but have had no luck!