Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Staff Listing

// WP_Query arguments
$args = array(
	'post_type'              => array( 'staff-member' ),
	'tax_query'              => array(
		array(
			'taxonomy'         => 'staff_category',
			'terms'            => 'the-term',
		),
	),
);

// 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();