Last active
June 27, 2019 01:34
-
-
Save dospuntocero/aca9cc609bac68979799674b818a1c13 to your computer and use it in GitHub Desktop.
show children pages of current page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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