Press Query
// WP_Query arguments $args = array( 'post_type' => array( 'post' ), 'posts_per_page' => '-1', ); // The Query $press_query = new WP_Query( $args ); // The Loop if ( $press_query->have_posts() ) { while ( $press_query->have_posts() ) { $press_query->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();