I have created a custom post type called banners and want to enable the thumbnails in that post type. Hence I have put the following code just after the starting tag on my functions file but the banners post type still are not showing featured image option in the admin panel.
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'post-thumbnails', array( 'banner' ) );
}
If I replace the banner with post or page the featured image option does show up in the respective menu options.
You need to make sure that your custom post type allows the use of the featured image. Here is an example of a custom post type with thumbnails allowed:
The line that allows the thumbnail is this one: