diff --git a/single-parcours-parent.php b/single-parcours-parent.php index 639d4d7..2386dfc 100644 --- a/single-parcours-parent.php +++ b/single-parcours-parent.php @@ -19,8 +19,10 @@ $otherSteps = new WP_Query(array( 'post__not_in' => array(get_queried_object_id()) )); -?> +$blocks = parse_blocks($post->post_content); +$chapterBlockIndex = build_page_chapter_index($blocks); // see utilities.php +?> @@ -42,19 +44,35 @@ $otherSteps = new WP_Query(array( - - ID); - get_template_part("template-components/heading-box--parcours", null, array( - "pageIcon" => $pageIcon, - "subtitle" => __("Parcours rénovateur", "homegrade-theme__texte-fonctionnel"), - "title" => get_the_title(), - "icon" => $pageIcon, - )); - ?> +ID); +get_template_part("template-components/heading-box--parcours", null, array( + "pageIcon" => $pageIcon, + "subtitle" => __("Parcours rénovateur", "homegrade-theme__texte-fonctionnel"), + "title" => get_the_title(), + "icon" => $pageIcon, +)); +?> -