Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
show children pages of current page
<div class="solutions-holder">
<div class="wrapper">
<?php
$args = [
'post_parent' => $post->ID,
'post_type' => 'page',
'orderby' => 'menu_order'
];
$child_query = new WP_Query( $args );
while ( $child_query->have_posts() ) : $child_query->the_post();
get_template_part('partials/solution');
endwhile;
wp_reset_postdata();
?>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.