fixing passing current ID to the chapter component

This commit is contained in:
Antoine M 2023-10-27 16:07:30 +02:00
parent 90b6cb1303
commit 2528e25b65

View File

@ -80,7 +80,9 @@ function build_chapter_index($blocks)
$blocks = parse_blocks($post->post_content);
$chapterBlockIndex = build_chapter_index($blocks);
?>
<?php get_template_part('template-components/post-conseils/chapter-header'); ?>
<?php get_template_part('template-components/post-conseils/chapter-header', array(
'ID' => get_the_ID(),
)); ?>
<div class=" conseils_wrapper">
<aside class="chapter_index">
<?php if ($chapterBlockIndex) : ?>