Can’t you just use this:
<?php the_tags( '<span class="tags">', ', ', '</span>' ); ?>
https://codex.wordpress.org/Function_Reference/the_tags
get_terms
gives you all the tags from your site I think.
Can’t you just use this:
<?php the_tags( '<span class="tags">', ', ', '</span>' ); ?>
https://codex.wordpress.org/Function_Reference/the_tags
get_terms
gives you all the tags from your site I think.