To get the child pages of a WordPress page, update options using query_posts
or WP_Query
:
$options = ( object ) array( 'order' => 'DESC', 'orderby' => 'menu_order', 'post_parent' => $pg[ 0 ]->ID, 'post_status' => 'publish', 'post_type' => 'page', 'posts_per_page' => 100 ); WP_Query( $options );