Post Thumbnails on Sidebar Widgets

There is no ability in the default widget, you will need to use third-party plugins to acheive your goal. Here are some that I have found. http://wordpress.org/extend/plugins/yd-recent-posts-widget/ http://wordpress.org/extend/plugins/get-recent-comments/

Specific Post Format Image Thumbnail

From your comment: This is all I meant: add_image_size( ‘index-thumb’, 640, 250, true ); add_image_size( ‘image-format’, 630, 9999, true ); So, let’s assume you create custom image sizes for gallery and video (as well as a “default” size, which we’ll call standard), perhaps like so: <?php add_image_size( ‘index-standard’, 640, 250, true ); add_image_size( ‘image-gallery’, 630, … Read more

Featured Image Thumbnail Sizing

I’ve approached this problem in a few different ways, here’s some ideas: Just grad the medium sized thumbnail with the_post_thumbnail(‘medium’); (or any defined size that is bigger than what you want displayed), and apply a .inner .thumb img {width: 153px; height: auto;} css rule. If it’s too tall it will get cropped from your overflow:hidden; … Read more

Automatic adding thumbnail to post

This should work: $wp_upload_dir = wp_upload_dir(); $fileurl = “http://damianc.pl/th.jpg”; $filename = $upload_dir[‘path’] . DIRECTORY_SEPARATOR . basename( $fileurl ); if ( file_put_contents( $filename, file_get_contents( $fileurl ) ) ) { require_once(ABSPATH . ‘wp-admin/includes/image.php’); $wp_filetype = wp_check_filetype(basename($filename), null); $attachment = array( ‘post_mime_type’ => $wp_filetype[‘type’], ‘post_title’ => preg_replace(‘/\.[^.]+$/’, ”, basename($filename)), ‘post_content’ => ”, ‘post_status’ => ‘inherit’ ); $attach_id = … Read more

Thumbnail images

Inside your post loop you can do; if ( has_post_thumbnail()) { echo get_the_post_thumbnail($post->ID, ‘thumbnail’); } This first checks for the existence of a featured image and if so it will display one at your default ‘thumbnail’ size as set in your settings/media options. This would also work within your loop; if ( has_post_thumbnail()) { the_post_thumbnail(‘thumbnail’); … Read more