<!--[single/post-tags]-->

<?php

    $tags = get_the_tags();

?>

<?php if( $tags ): ?>

<div class="tags-list my-4">

    <span class="mr-3">
        Метки:
    </span>

    <?php foreach ( $tags as $tag ): ?>

        <a class="mr-3" href="<?= esc_attr( get_tag_link( $tag->term_id ) ) ?>">

            <?= $tag->name ?>

        </a>

    <?php endforeach; ?>

</div>

<?php endif; ?>

<!--[/single/post-tags]-->