1、调用全部或指定ID
调用某几个页面的代码:
2、调用当前页面分类下的全部子页面
ID; while($current_page) { $page_query = $wpdb->get_row("SELECT ID, post_title, post_status, post_parent FROM $wpdb->posts WHERE ID = '$current_page'"); $current_page = $page_query->post_parent; } $parent_id = $page_query->ID; $parent_title = $page_query->post_title; $page_menu = wp_list_pages('echo=0&sort_column=menu_order&title_li=&child_of='. $parent_id); if ($page_menu) { ?>
游客回答:(0)