Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

GAS 2017 Selected Artists

// WP_Query arguments
$args = array(
	'post_type'              => array( 'gas_artists' ),
	'post_status'            => array( 'publish' ),
	'tax_query'              => array(
		array(
			'taxonomy'         => 'gas_artist_status',
			'terms'            => 'accepted-2017',
			'field'            => 'slug',
			'operator'         => 'IN',
		),
	),
);

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

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

// Restore original Post Data
wp_reset_postdata();