Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

projects

// WP_Query arguments
$args = array(
	'post_type'              => array( 'projects' ),
	'post_status'            => array( 'published' ),
	'order'                  => 'DESC',
	'orderby'                => 'menu_order',
	'tax_query'              => array(
		array(
			'taxonomy'         => 'project_sector',
			'terms'            => 'auto',
			'field'            => 'slug',
			'operator'         => 'AND',
		),
	),
);

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