I missed the title on custom post types on new or edit page; I have added some custom fields, but Title disappeared.
register_post_type( 'videos', array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'exclude_from_search' => true,
'query_var' => true,
'rewrite' => true,
'capability_type' => 'post',
'has_archive' => true,
'hierarchical' => false,
'menu_position' => 10,
'supports' => array( 'editor' ),
'register_meta_box_cb' => 'videos_meta_boxes',
) );
This is the first time I tried to add customs post types on my own. I think something here is missing.
By declaring a value for the parameter ‘supports’, you override the default output which shows the ‘title’ and ‘editor’. http://codex.wordpress.org/Function_Reference/register_post_type
I recommend removing the ‘supports’ parameter if you don’t need any other post fields (reduce clutter on the page) or just re-iterate the default (in case you want to easily add more fields like thumbnail or comments later):
You missed this in your code :