FIX tag list
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nonimart 2025-10-14 16:30:03 +02:00
parent f40d5cd9ce
commit 0efe7f2e99

View File

@ -14,7 +14,6 @@ $articles = get_field('articles', $current_issue->ID);
<?php
$issue_number = get_field('issue_number', $current_issue->ID);
?>
<?php get_template_part('template-parts/post-header'); ?>
<?php get_template_part('template-parts/revues/revue-toolbar'); ?>
@ -26,9 +25,8 @@ $articles = get_field('articles', $current_issue->ID);
<input type="text" placeholder="Rechercher">
</div>
<?php
$tags = get_terms(array(
'taxonomy' => 'etiquettes',
));
$tags = get_revue_terms($current_issue->ID, 'etiquettes');
?>
<?php if ($tags) : ?>
<div class="tags">
@ -38,10 +36,10 @@ $articles = get_field('articles', $current_issue->ID);
<li>
<a class="article-tag" href="<?php echo get_term_link($tag); ?>"><?php echo $tag->name; ?></a>
</li>
<?php endforeach; ?>
<?php endif; ?>
</ul>
</div>
<?php endforeach; ?>
<?php endif; ?>
</div>