I was wondering how I could get #tag-container to only display when there’s tags. How do I do this? I’m thinking there’s some if and else statements, but I can’t figure out how to correctly write it…
<div class="tag-container">
<p><?php the_tags(); ?></p>
</div>
In addition to the other answers I would store the rendered tags in a variable to not call the same function twice.