Any ideas why I get the following HTML (ie: incorrect width):
With the following theme code?HTML Code:<img width="470" height="304" src="http://domain.com/wp-content/uploads/test.jpg" class="attachment-post-thumbnail wp-post-image" alt="" title="test-470x304[1]" />
functions.php
single.phpPHP Code:add_theme_support( 'post-thumbnails' );
add_theme_support( 'page-thumbnails' );
set_post_thumbnail_size( 470, 304, true ); // Normal post thumbnails
add_image_size( 'single-post-thumbnail', 150, 9999 );
The thumbnail should be 150 pixels wide, not 470 pixels as it should be using the 'single-post-thumbnail' image size ... but it's notPHP Code:the_post_thumbnail( 'single-post-thumbnail' );
I'm slowly going insane trying to figure out what I'm doing wrong. I've had this issue about 20x now and by some miracle I occasionally get it to work, but then other times (like now) I can't get it to work at all![]()


LinkBack URL
About LinkBacks
Reply With Quote