“application” WP_Query with “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-loop = new WP_Query( $args );
// The Loop
if ( $app_query-loop->have_posts() ) {
while ( $app_query-loop->have_posts() ) {
$app_query-loop->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();