Get Pages by Parent
I’m trying to get pages where the parent of those pages is 157. I thought this would do the trick:
<?php $my_loop = new WP_Query(‘post_parent=157’); ?>
<?php while ($my_loop->have_posts()) : $my_loop->the_post(); ?>
But it’s not working. ot sure where else to turn. Thoughts? Thanks!
- The topic ‘Get Pages by Parent’ is closed to new replies.