• Resolved Lai Xuancheng

    (@lai32290)


    I’m creating a post type to support Title and Thumbnail like this way:

    
    	$alias = '360_picture';
    	$singularName = 'Foto 360';
    	$pluralName = 'Fotos 360';
    
    	$labels = [
    		'name' => $pluralName,
    		'name_singular' => $singularName,
    		'add_new_item' => 'Adicionar novo ' . $singularName
    	];
    
    	$args = [
    		'public' => true,
    		'labels' => $labels,
    	 	'menu_icon' => 'dashicons-format-gallery',
    	 	'supports' => ['title', 'thumbnail']
    	];
    
    	register_post_type( $alias, $args );
    

    Even I add ‘thumbnail’ at list of support, but my post type still have not it.

    Why my thumbnail is not showing up?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘register_post_type is not supporting thumbnail’ is closed to new replies.