FEATURE handling new tags behaviour

This commit is contained in:
Nonimart 2025-10-16 11:40:52 +02:00
parent a26a889f35
commit a4175d1621
2 changed files with 6 additions and 2 deletions

View File

@ -33,7 +33,9 @@ $articles = get_field('articles', $current_issue->ID);
<ul class="tags-list">
<?php foreach ($tags as $tag) : ?>
<li>
<a class="article-tag" href="<?php echo get_term_link($tag); ?>"><?php echo $tag->name; ?></a>
<a class="article-tag" href="<?php echo add_query_arg('etiquette', $tag->slug, get_post_type_archive_link('articles')); ?>">
<?php echo $tag->name; ?>
</a>
</li>
<?php endforeach; ?>
</ul>

View File

@ -12,7 +12,9 @@ $tags = get_the_terms($articleID, 'etiquettes');
<ul class="article-tags-list">
<?php foreach ($tags as $tag) : ?>
<li class="article-tag">
<?php echo $tag->name; ?>
<a href="<?php echo add_query_arg('etiquette', $tag->slug, get_post_type_archive_link('articles')); ?>">
<?php echo $tag->name; ?>
</a>
</li>
<?php endforeach; ?>
</ul>