Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

“application” Post Query – no use “The Loop”

WP_Query for the “application” custom post type. WP_Query will return all posts, so know need to show “The Loop”.

// WP_Query arguments
$args = array(
	'post_type'              => array( 'application' ),
	'nopaging'               => true,
	'order'                  => 'ASC',
	'orderby'                => 'title',
	'cache_results'          => true,
	'update_post_meta_cache' => false,
	'update_post_term_cache' => false,
);

// The Query
$app_query = new WP_Query( $args );