Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Query Auditorias

// WP_Query arguments
$args = array(
	'post_type'              => array( 'TYPE' ),
	's'                      => '$search',
	'nopaging'               => true,
	'posts_per_page'         => '-1',
	'order'                  => 'ASC',
	'tax_query'              => array(
		'relation' => 'AND',
		array(
			'taxonomy'         => 'ZYXAUDIT_TAX',
			'terms'            => '$pais',
			'field'            => 'name',
			'operator'         => 'IN',
			'include_children' => false,
		),
	),
);

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