首先设置参数(设置)
$args = array(
\'post_parent\' => get_the_ID(),
\'post_type\' => \'page\',
\'numberposts\' => -1,
\'post_status\' => \'publish\'
);
$children = get_children( $args, $output );
那么你可以用这样的东西
<?php if (!empty($children)):?>
<ul class="row">
<?php foreach($children as $dest){
$permalink = get_permalink($dest->ID);
echo "<li class=\'col-sm-4\'><a href=\'{$permalink}\'>" . $dest->post_title . "</li>";
}?>
</ul>
<?php endif;?>
有关详细信息
https://codex.wordpress.org/Function_Reference/get_children