Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

nau_amazing_alumni_query

// WP_Query arguments
$args = array (
	'post_type'              => 'amazing-alumni',
	'post_status'            => 'publish',
);

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

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

// Restore original Post Data
wp_reset_postdata();