Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Course Cat Edu and Train query

// WP_Query arguments
$args = array(
	'post_type'              => array( 'course' ),
	'post_status'            => array( 'publish' ),
	'orderby'                => 'title',
	'tax_query'              => array(
		'relation' => 'AND',
		array(
			'taxonomy'         => 'course_category',
			'terms'            => 'education-training',
			'field'            => 'slug',
		),
	),
);

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

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

// Restore original Post Data
wp_reset_postdata();