Guest Post Type
// WP_Query arguments $args = array( 'post_type' => array( 'guest-author' ), 'post_status' => array( 'publish' ), 'nopaging' => true, 'ignore_sticky_posts' => false, 'order' => 'ASC', 'orderby' => 'title', ); // The Query $guests = new WP_Query( $args ); // The Loop if ( $guests->have_posts() ) { while ( $guests->have_posts() ) { $guests->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();