Resources WP Query
// WP_Query arguments $args = array( 'post_type' => array( 'resources' ), 'nopaging' => true, ); // The Query $resources = new WP_Query( $args ); // The Loop if ( $resources->have_posts() ) { while ( $resources->have_posts() ) { $resources->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();