FEATURE handling the new tags behaviour

This commit is contained in:
Antoine M 2025-10-16 11:43:13 +02:00
parent a8dbb2f917
commit 28a792cf1b

View File

@ -20,7 +20,12 @@ $cover = get_the_post_thumbnail_url($articleID);
$terms = get_the_terms($articleID, 'etiquettes');
if ($terms): ?>
<?php foreach ($terms as $term): ?>
<li class="article-card__tag article-tag"><?php echo esc_html($term->name); ?></li>
<li class="article-card__tag article-tag">
<a href="<?php echo add_query_arg('etiquette', $tag->slug, get_post_type_archive_link('articles')); ?>">
<?php echo esc_html($term->name); ?>
</a>
</li>
<?php endforeach; ?>
<?php endif; ?>