Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

DT Team

// WP_Query arguments
$args = array(
	'post_type'              => array( 'dt_team' ),
	'nopaging'               => true,
	'order'                  => 'ASC',
	'orderby'                => 'menu_order',
	'tax_query'              => array(
		'relation' => 'AND',
		array(
			'taxonomy'         => 'dt_team_category',
			'terms'            => 'coaches',
			'field'            => 'slug',
		),
	),
);

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

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

// Restore original Post Data
wp_reset_postdata();