- in_array: documentation ( source)
<?php
//start by fetching the terms for the product_type taxonomy
$terms = get_terms( 'stores', array(
'hide_empty' => 0
) );
foreach( $terms as $term ) {
if (in_array('UK', get_field('store_country', 'stores_'.$term->term_id))) {
continue;
echo '<div>' . $term->name . '</div>';
}
}
?>