This functions gets the terms of a taxonomy inside the loop and concatenates in a variable. // Pega os termos de uma texonomia dentro do loop e concatena em uma variável.
<?php
$id = get_the_ID();
$tipos = wp_get_post_terms( $id, 'tipo', '' );
//print_r($tipos);
$tipoSlug = '';
foreach ($tipos as $tipo) {
$tipoSlug .= $tipo->slug . ' '; //concatenate the terms with space between
}
?>
<div class="portfolio-item <?php echo $tipoSlug; ?> col-xs-12 col-sm-4 col-md-3">
<a href="<?php the_permalink() ?>">
</div>