WordPress Custom Featured image size?

I have gone through each of the solutions I’ve found on here, and still cannot get my ‘featured’ image to show it’s proper size, something continually is forcing it to the wp default 150×110 px.

I have gone into wp/settings/media and changed the thumbnail size… no change I have gone into the gallery/ featured image and turned off all other sizes except for original… no change I have gone into my functions.php file and changed the size that is supposedly being called..

if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'homepage-thumb' );
    set_post_thumbnail_size( 420, 110 ); // default Post Thumbnail dimensions   
}

if ( function_exists( 'add_image_size' ) ) { 
add_image_size( 'category-thumb', 420, 9999 ); //300 pixels wide (and unlimited  height)
add_image_size( 'homepage-thumb',420, 110, true ); //(cropped)
}

In my index file I have …

<?php if(has_post_thumbnail()) {echo '<a href="'.get_permalink().'">';echo get_the_post_thumbnail($post->ID, array(420,110) );echo '</a>';} ?>

and still nothing..

When I inspect the element in firebug I see this:

<img class="attachment-420x110 wp-post-image" width="150" height="110" title="t-test2" alt="t-test2" src="http://pixelneer.com/wp-content/uploads/2012/01/t-test2-150x110.png">

SO it is still getting the defualt thunbnail size from somewhere else, and I am at a loss.

I am using starkers, and the URL is pixelneer

Leave a Comment