diff --git a/single-parcours.php b/single-parcours.php index f0541cc..a4d00b9 100644 --- a/single-parcours.php +++ b/single-parcours.php @@ -1,16 +1,21 @@ -
- +
+ + post_parent === 0; + if ($isParentPage) { + get_template_part('single-parcours-parent'); + } else { + get_template_part('single-parcours-child'); + } + ?> +
+ + - $isParentPage = get_queried_object()->post_parent === 0; - if ($isParentPage) { - get_template_part('single-parcours-parent'); - } else { - get_template_part('single-parcours-child'); - } - ?> -