1
I am using the following code to enable Custom Posts Types on my website. No functions. What should I add to this code for the thumbnails function to appear in the custom post?
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
)
);