代替$parent 在里面child_of 的参数wp_list_pages 通过parent->ID.wp_list_pages 需要post id而不是post对象。
<?php
global $post;
$direct_parent = $post->post_parent;
$parent = $direct_parent->post_parent;
wp_list_pages( array(
\'child_of\' => $parent,
\'title_li\' => false,
\'depth\' => 1
) );
?>