To get posts bound by a date or time limit, we need to specify a conditional date query. For example, to get all posts, published in the last week, you would have to frame your date query as follows: $last_week_posts = new WP_Query( array('date_query' => array( array ( 'after' => '1 week ago',) ) ));