你的问题不太明白。不管怎样,我试着回应。。。在声明新的自定义帖子类型时,可以使用“hierarchy”=>true。
要将此新菜单放置在管理员的其他位置,请使用适当的“menu\\u position”=>5、,。
示例(要添加到functions.php文件中):
add_action( \'init\', \'create_my_post_types\' );
function create_my_post_types() {
register_post_type( \'mycustompages\',
array(
\'labels\' => array(
\'name\' => __( \'My custom pages\' ),
\'singular_name\' => __( \'My custom page\' )
),
\'public\' => true,
\'hierarchical\' => true,
\'show_ui\' => true,
\'publicly_queryable\' => true,
\'exclude_from_search\' => false,
\'menu_position\' => 5,
\'supports\' => array( \'title\', \'editor\', \'comments\', \'trackbacks\', \'author\', \'excerpt\', \'custom-fields\', \'thumbnail\' ),
\'rewrite\' => array( \'slug\' => \'mypage\', \'with_front\' => false ),
)
);
}