I have created a filter on a custom post type loop using terms slugs just like that :
<li><a href="#" data-filter=".<?php echo esc_attr( $cat->slug ); ?>"><?php echo esc_html( $cat->name ); ?> </a></li>
<div class="grid-item <?php echo esc_attr( $cat->slug ); ?> js-isotope-item js-grid-item">
But several posts are linked to multiple taxonomy terms and $cat->slug just take the first slug..
Is there any way to call all the slugs and output them with a separator (space) to have different classes ?
Sorry if I'm not clear, english is not my language..
Thank you for help !