Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Salu Results

// WP_Query arguments
$args = array(
	'post_type'              => array( 'course' ),
	'tax_query'              => array(
		array(
			'taxonomy'         => 'department',
		),
	),
	'meta_query'             => array(
		array(
			'key'     => 'result_status',
			'value'   => 'submitted',
			'compare' => '=',
		),
	),
);

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