'atmswc', 'tax_query' => array( array( 'taxonomy' => 'atmswc_cat', 'field' => 'id', 'terms' => $myarray, ) ) ); // The Query $query = new WP_Query( $args ); while ($query->have_posts()) : $query->the_post(); ?>