Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Staff Query

// WP_Query arguments
$args = array (
	'post_type'              => 'staff',
	'category_name'          => 'vd-campus',
	'order'                  => 'ASC',
	'orderby'                => 'rand',
);

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

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

// Restore original Post Data
wp_reset_postdata();