慕尼黑8549860
试试这个。应该可以: 1. 检索所有具有父 $ancestor_id 的页面 2. 循环遍历结果并回显页面标题和缩略图。 $ancestor_id = 29; $pg_args = array( 'sort_order' => 'asc', 'sort_column' => 'post_title', 'hierarchical' => 1, 'exclude' => '', 'include' => '', 'meta_key' => '', 'meta_value' => '', 'authors' => '', 'child_of' => 0, 'parent' => $ancestor_id, 'exclude_tree' => '', 'number' => '', 'offset' => 0, 'post_type' => 'page', 'post_status' => 'publish');$pages = get_pages($pg_args); foreach($pages as $page){ echo $page->post_title; echo get_the_post_thumbnail($page); }