refining query loop
This commit is contained in:
parent
e01315b972
commit
117aab7ef0
|
|
@ -1,16 +1,21 @@
|
||||||
<?php get_header(); ?>
|
<?php get_header(); ?>
|
||||||
|
|
||||||
<div class="homegrade-page-container homegrade-page--parcours">
|
|
||||||
|
|
||||||
<?php
|
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
||||||
|
<div class="homegrade-page-container homegrade-page--parcours">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$isParentPage = get_queried_object()->post_parent === 0;
|
||||||
|
if ($isParentPage) {
|
||||||
|
get_template_part('single-parcours-parent');
|
||||||
|
} else {
|
||||||
|
get_template_part('single-parcours-child');
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
<?php endwhile; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
$isParentPage = get_queried_object()->post_parent === 0;
|
|
||||||
if ($isParentPage) {
|
|
||||||
get_template_part('single-parcours-parent');
|
|
||||||
} else {
|
|
||||||
get_template_part('single-parcours-child');
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php get_footer();
|
<?php get_footer();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user