I am using the following code to enable Custom Posts Types on my site. No functions. What should I add to this code so that the function of thumbnails to the custom post appears?
add_action( 'init', 'create_post_type' );
function create_post_type() {
register_post_type( 'portfolio',
array(
'labels' => array(
'name' => __( 'Portfolio' ),
'singular_name' => __( 'Porfolio' )
),
'public' => true,
)
);
}
register_taxonomy(
"categorias",
"portfolio",
array(
"label" => "Categorias",
"singular_label" => "Categoria",
"rewrite" => true,
"hierarchical" => true
)
);