Managed to figure it out although it is a bit odd.
To have the image for custom post types I had to use:
Code:
add_theme_support( 'post-thumbnails' );
using:
Code:
add_theme_support('post-thumbnails', array( 'post', 'page' ) ); for some reason does not work for custom pot types anymore so maybe there is another item that we can add into the allowed items?
The code to add labels has now also been updated so i will have to set more items in the array list like this portfolio one i found:
Code:
$labels = array(
'name' => _x('My Portfolio', 'post type general name'),
'singular_name' => _x('Portfolio Item', 'post type singular name'),
'add_new' => _x('Add New', 'portfolio item'),
'add_new_item' => __('Add New Portfolio Item'),
'edit_item' => __('Edit Portfolio Item'),
'new_item' => __('New Portfolio Item'),
'view_item' => __('View Portfolio Item'),
'search_items' => __('Search Portfolio'),
'not_found' => __('Nothing found'),
'not_found_in_trash' => __('Nothing found in Trash'),
'parent_item_colon' => ''
);
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'query_var' => true,
'menu_icon' => get_stylesheet_directory_uri() . '/article16.png',
'rewrite' => true,
'capability_type' => 'post',
'hierarchical' => false,
'menu_position' => null,
'supports' => array('title','editor','thumbnail')
);
register_post_type( 'portfolio' , $args ); Bit odd how it was all working in 3.0 but in 3.0.1 it stopped working