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