ACF – Get unique values of array
Is correct to do this way? `<ul id=”filters” class=”clearfix”> <?php $taxonomy = ‘categoria_sistemas_sanitarios’; $terms = get_terms( $taxonomy ); $unique = array(); echo ‘<li><span class=”filter-‘. $title . ‘ active” data-filter=”‘; $li = ‘ ‘; foreach ( $terms as $term) { $li .= ‘.’ . $term->slug.’, ‘; } $li = rtrim($li, ‘, ‘); echo $li; echo ‘”>Todos … Read more