Bu şekilde daha doğru bir kullanım olabilir. Ayrıca https://developer.wordpress.org/refe...ions/the_tags/ adresinden detaylara da bakabilirsiniz.

<?php
if(has_tag()) {
    the_tags();
}
?>