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

Create an instance of add_image_size

When you upload an image, it’s saved, and a copy is created for every image size, resized to the appropriate dimensions. When you specify a set of dimensions manually, e.g. wp_get_attachment_image_src($id, array(57, 57)) the 57×57 dimensions are compared to the image sizes, and the nearest image size is chosen and that image is returned. So … Read more

WordPress featured image url rendering incorrectly when page is loaded causing image to break

I’d recommend taking a look at the database. 1) check the upload_path option and correct directly if needed (well, this one can be altered here too: wp-admin/options.php) SELECT * FROM `wp_options` WHERE `option_name` = ‘upload_path’ 2) check the guid of the attachments and use this plugin if needed SELECT guid,post_mime_type FROM `wp_posts` WHERE `post_type` = … Read more

Extract featured image from link mentioned in blog post

Found some plugins that may (or not) match your requirements. Using this query string in the repository. Super News ( Search Related News ) ShrinkTheWeb (STW) Website Previews Plugin But, there’s one (WP-SnapAvatar) that although doesn’t address the particulars, consists in a little and very interesting function, that I’ll reproduce here: /* Plugin Name: WP-SnapAvatar … Read more