the_post_thumbnail not resizing

Updated the answer to match my latest comment: Changing <?php if (the_post_thumbnail()): ?> to <?php if (has_post_thumbnail()): ?> will probably solve things. Also, some must have developer plugins when working with featured images: Regenerate Thumbnails AJAX Thumbnail Rebuild

Where in functions.php to add this code so thumbnail images display?

Post thumbnails are enabled in the twenty-eleven theme by default. If it’s not working either you have a plugin conflict, or someone has edited the functions.php file. Here is the section of the twenty-eleven functions.php file that should enable the post thumbnails: add_theme_support( ‘post-thumbnails’ ); The code needs to be inside the function twentyeleven_setup() function … Read more

Using catch_the_image to get the thumbnail size

You can add your own named image size by adding code to your functions.php. Something in the line of add_theme_support(‘post-thumbnails’);//might not be necessary add_image_size(‘front-end-150’, 300, 300); Now you should be able to use in your catch_that_image() wp_get_attachment_image($post->ID, ‘front-end-150′) for all newly uploaded images. Your past images don’t have the front-end-150, so you might want to … Read more

WordPress 3.3.1 not cropping featured image

By default, the_post_thumbnail() $size parameter is ‘post-thumbnail’. You can set that by adding this line to your functions.php : set_post_thumbnail_size(125,125,true); If this still doesn’t update your image’s size, you may need to use a plugin like “Regenerate Thumbnails.” Alternately, you can set the image to use one of the Media Options-defined sized by passing a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)