WP Query

Loop query snippet

Code Markup
// WP_Query arguments
$args = array (
'post_type' => array( 'progression' ),
'posts_per_page' => '5',
'category_name' => category-name,
'post_status'            => array( 'publish' ),
);

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

// The Loop
if ( $progression->have_posts() ) {
while ( $progression->have_posts() ) {
$progression->the_post();
// do something
}
} else {
// no posts found
}

// Restore original Post Data
wp_reset_postdata();