WordPress Получите детские посты
<?php
$child_posts = get_children( array('post_parent' => get_the_ID()) );
?>
elcharitas
<?php
$child_posts = get_children( array('post_parent' => get_the_ID()) );
?>