Created
September 16, 2017 10:51
-
-
Save reediredale/0613e3340aaf2c9e140d8a7c50d4948b to your computer and use it in GitHub Desktop.
Query Page Children Loop
This file contains 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
<?php | |
$the_query = new WP_Query(array( | |
'post_type' => 'page', | |
'post_parent' => '9947' | |
)); | |
while ($the_query->have_posts()) | |
{ ?> | |
<div class="d-1of3"> | |
<?php $the_query->the_post(); | |
echo get_the_title(); ?> | |
</div> | |
<?php } | |
wp_reset_postdata(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment