Upcoming walks
// WP_Query arguments $args = array( 'post_type' => array( 'walks' ), 'post_status' => array( 'publish' ), 'order' => 'ASC', ); // The Query $upcoming_walks = new WP_Query( $args ); // The Loop if ( $upcoming_walks->have_posts() ) { while ( $upcoming_walks->have_posts() ) { $upcoming_walks->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();