FIX for revue id not passed correctly to one component
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nonimart 2025-09-04 17:08:43 +02:00
parent 2c08303099
commit 3d0771f5fd

View File

@ -10,6 +10,12 @@ $articles = get_field('articles', $current_issue->ID);
<div class="page--single-revue" data-revue-id="<?php echo get_the_ID(); ?>">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?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'); ?>
@ -40,15 +46,8 @@ $articles = get_field('articles', $current_issue->ID);
</div>
<div class="content-area">
<div class="authors">
<!-- <button class="authors-button">get Auteurs</button> -->
<div class="authors-list">
</div>
</div>
<details class="edito" open="true">
<summary>
<h2 class="edito__title">
@ -74,7 +73,7 @@ $articles = get_field('articles', $current_issue->ID);
)); ?>
<?php get_template_part('template-parts/articles/article-informations', null, array(
'revueID' => $revueID
'revueID' => get_the_ID()
)); ?>