fixing passing current ID to the chapter component
This commit is contained in:
parent
90b6cb1303
commit
2528e25b65
|
|
@ -80,7 +80,9 @@ function build_chapter_index($blocks)
|
||||||
$blocks = parse_blocks($post->post_content);
|
$blocks = parse_blocks($post->post_content);
|
||||||
$chapterBlockIndex = build_chapter_index($blocks);
|
$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">
|
<div class=" conseils_wrapper">
|
||||||
<aside class="chapter_index">
|
<aside class="chapter_index">
|
||||||
<?php if ($chapterBlockIndex) : ?>
|
<?php if ($chapterBlockIndex) : ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user