If I want to display all terms assigned to a custom post with custom taxonomy, I could use for eg.
<?php the_terms( $post->ID, 'custom-taxonomy', '', ", ", '' ); ?>
but in this solution I need specify name of taxonomy.
I want to display all terms from all assigned to post taxonomies, but separetly. For eg. if I have taxonomies called "holidays
" and "countries
" I want to display their terms like that:
<div>
<span>[terms of "holidays"]</span>
<span>[terms of "countries"]<span>
</div>
How can I do that automatically, without giving the names of taxonomies?
Thanks!