我正在尝试创建一个自定义的帖子类型,可以与父帖子关联(它们是帖子而不是页面)。Wordpress是3.0.1版。我希望在页面属性下的父帖子下拉列表中看到帖子列表,但我得到的只是一个“顺序”字段。我是否错过了一些重要的事情?
register_post_type( \'mytest_post_type\',
array(
\'labels\' => array(
\'name\' => __( \'mytest Interviews\' ),
\'singular_name\' => __( \'mytest Interview\' ),
\'add_new\' => __( \'Add New\' ),
\'add_new_item\' => __( \'Add New mytest Interview\' ),
\'edit\' => __( \'Edit\' ),
\'edit_item\' => __( \'Edit mytest Interview\' ),
\'new_item\' => __( \'New mytest Int.\' ),
\'view\' => __( \'View mytest Inteview\' ),
\'view_item\' => __( \'View mytest Int.\' ),
\'search_items\' => __( \'Search mytest Interviews\' ),
\'not_found\' => __( \'No mytest Interviews found\' ),
\'not_found_in_trash\' => __( \'No mytest Interviews found in Trash\' ),
\'parent\' => __( \'Parent mytest Interview\' ),
),
\'public\' => true,
\'show_ui\' => true,
\'hierarchical\' => true,
\'query_var\' => true,
\'supports\' => array(\'title\', \'editor\', \'author\',\'custom-fields\',\'page-attributes\'),
)
);
或者,是否不可能创建新的自定义帖子类型,并将这些新帖子作为现有帖子的子帖子?
谢谢