I has custom field 'People' and I have parent pages(post types) and child pages (post types). This is my code:
<?php
$args = array(
'post_type'=> 'people',
'posts_per_page' => -1,
);
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) { ?>
<?php $loop->the_post();?>
<div class="title">
<a href="<?php the_permalink();?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</div>
<?php } ?>
I need display this custom post types in hierarchical order. For example:
First parent post type
- first child of first parent post type
-second child of first parent post type
Second parent post type
-first child of second parent post type
But by default this posts displayed in other by time of publish. Any ideas, how resolved this problem?
Thanks all.

