Wrap tags in unordered list

This commit is contained in:
Ben Goldsworthy 2021-01-24 12:59:32 +00:00
parent 7cea365fb2
commit 65f346796f

View file

@ -188,11 +188,15 @@
?>
<section id="post-tags">
<h2>Tags</h2>
<ul>
<?php foreach ( $tags as $post_tag ) : ?>
<li>
<a href="<?php echo esc_url( get_tag_link( $post_tag->term_id ) ); ?>" title="<?php echo esc_attr( $post_tag->name ); ?> Tag" class="tag-link">
<?php echo wp_kses_post( $post_tag->name ); ?>
</a>
</li>
<?php endforeach; ?>
</ul>
</section>
<?php endif; ?>