$value){
if($value != »){
$item[‘taxonomy’] = htmlspecialchars($key);
$item[‘terms’] = htmlspecialchars($value);
$item[‘field’] = ‘slug’;
$list[] = $item;
}
}
$cleanArray = array_merge(array(‘relation’ => ‘AND’), $list);

$args[‘post_type’] = ‘post’;
$args[‘showposts’] = 100;
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
$args[‘paged’] = $paged;
$args[‘tax_query’] = $cleanArray;
$the_query = new WP_Query( $args );
/*echo»WW»;
print_r ($the_query);
echo»ZZ»;*/
?>

found_posts > 0) ? »/*$the_query->found_posts*/ : ‘

Объектов по заданным параметрам не найдено!

‘;?>
have_posts() ) : $the_query->the_post();
get_template_part(‘content’);
endwhile; wp_reset_postdata();?>