Custom Post Type Query
wp-query snippet that retrieves all entries for the “application” custom post type
// WP_Query arguments $args = array( 'name' => 'Application Slug', 'post_type' => array( 'application' ), 'nopaging' => false, 'posts_per_page' => '10', 'posts_per_archive_page' => '10', 'ignore_sticky_posts' => true, 'order' => 'ASC', 'orderby' => 'title', ); // The Query $app-query = new WP_Query( $args ); // The Loop if ( $app-query->have_posts() ) { while ( $app-query->have_posts() ) { $app-query->the_post(); // do something } } else { // no posts found } // Restore original Post Data wp_reset_postdata();