Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

offerte hotel

// WP_Query arguments
$args = array(
	'post_type'              => array( 'offerte_hotel' ),
	'post_status'            => array( 'publish' ),
	'nopaging'               => true,
	'posts_per_page'         => '-1',
	'tax_query'              => array(
		'relation' => 'OR',
		array(
			'taxonomy'         => 'offerte_hotel_category',
			'terms'            => '3',
			'field'            => 'term_id',
			'operator'         => 'IN',
			'include_children' => true,
		),
	),
	'meta_query'             => array(
		'relation' => 'AND',
		array(
			'key'     => 'offerta_hotel_active',
			'value'   => '1',
			'type'    => 'BINARY',
		),
		array(
		),
	),
);

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

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

// Restore original Post Data
wp_reset_postdata();