Hi there,
I am registering a new post type. I added add_theme_support('post-thumbnails'); and `add_filter(‘piklist_post_types’, ‘worksfire_post_type’);
function worksfire_post_type($post_types)
{
$post_types[‘staff’] = array(
‘title’ => __(‘Enter Custom Title’)
,’labels’ => piklist(‘post_type_labels’, ‘Staff’)
,’public’ => true
,’rewrite’ => array(
‘slug’ => ‘staff’
)
,’menu_icon’ => ‘dashicons-groups’
,’page_icon’ => ‘dashicons-groups’
,’supports’ => array(
‘author’
,’thumbnail’
,’title’
,’editor’
,’custom-fields’
)
,’edit_columns’ => array(
‘title’ => __(‘Staff Name’)
)
,’hide_meta_box’ => array(
‘slug’
,’author’
,’revisions’
,’comments’
,’commentstatus’
)
);
return $post_types;
}`
but I can’t see the featured image upload field. Am I doing anything wrong?
Thanks