Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

wp query

// WP_Query arguments
$args = array(
	'post_type'              => array( 'customer' ),
	'tax_query'              => array(
		array(
			'taxonomy'         => 'tax1',
			'terms'            => 'terms1',
			'field'            => 'slug',
		),
		array(
			'taxonomy'         => 'tax2',
			'terms'            => 'term2',
			'field'            => 'slug',
			'operator'         => 'NOT IN',
		),
	),
	'meta_query'             => array(
		array(
			'key'     => 'key1',
			'value'   => 'value1',
		),
		array(
			'key'     => 'key2',
			'value'   => 'meta2',
			'compare' => '!=',
		),
	),
);

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