Attorneys Overview
Update the ‘post_parent’ Page ID to query for the Attorney child pages
// WP_Query arguments
$args = array (
'post_parent' => '10',
'post_type' => array( 'page' ),
'post_status' => array( 'publish' ),
'order' => 'DESC',
'orderby' => 'menu_order',
);
// The Query
$attorneys = new WP_Query( $args );
// The Loop
if ( $attorneys->have_posts() ) {
while ( $attorneys->have_posts() ) {
$attorneys->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();