我使用以下代码创建了自定义帖子类型:
register_post_type(
\'custom_type\',
array(
\'labels\' => $labels,
\'description\' => \'\',
\'public\' => false,
\'publicly_queryable\' => false,
\'exclude_from_search\' => true,
\'show_in_nav_menus\' => false,
\'show_ui\' => true,
\'show_in_menu\' => true,
\'show_in_admin_bar\' => true,
\'menu_icon\' => $icon,
\'can_export\' => false,
\'delete_with_user\' => false,
\'hierarchical\' => false,
\'has_archive\' => false,
\'query_var\' => false,
\'capability_type\' => \'custom_type\',
\'map_meta_cap\' => true,
\'rewrite\' => false,
\'supports\' => array(
\'title\',
\'custom-fields\'
)
)
);
但是,我找不到
post_author
显示在
edit.php
, 这个代码怎么了?