I’ve created a custom post type with this code:
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'
)
)
);
However, I cannot find the post_author
shown on the edit.php
, what wrong with this code?