It returns an array of terms objects given a taxonomy; // Retorna um array de objetos de termos de uma taxonomia
<pre>
<?php
$terms = get_terms([
'taxonomy' => 'tipo',
'hide_empty' => false,
]);
print_r($terms);
?>
</pre>
<ul class="portfolio-filter text-center">
<?php
foreach ($terms as $term ) {
$termNome = $term->name;
$termSlug = $term->slug; ?>
<li><a class="btn btn-default" href="#" data-filter=".<?php echo $termSlug; ?>"><?php echo $termNome; ?></a></li>
<?php } ?>
</ul><!--/#portfolio-filter-->