Thumbnails Suddenly Stopped Working
-
Hello,
Thumbnails as featured images were working just fine until two days ago, when the site was moved to a new hosting company.
Scaled images (150 x 150) were automatically created and used on homepage/archive excerpts. (www.altfg.com)
But in the last two days, **ONLY** full-size images have been uploaded to wp-uploads. Since I’m given no choice, I must select them as “featured images.” (I’m given no choice to edit those images, either.) They do appear as thumbnails on the homepage/tag archives, but browsers are actually downloading the full-sized image. Not a thumbnail. That has really slowed things down for the homepage and several tag archive pages.
I’ve spent nearly all day today looking through posts and comments in this forum and elsewhere, but I’ve found nothing that directly relates to the problem I’m having.
The questions I have are:
a) How can I make **thumbnails** the default option when I upload an image from my computer (either flash or browser uploader) to wp-uploads?
b) How can I ensure that ONLY the thumbnail version will be uploaded?
c) This is something else, though still related to this thumbnail issue: I’ve realized that wp-uploads now has three (or four?) copies of each image on the site, in various sizes. Is there a way for me to get rid of ALL those images EXCEPT for the thumbnails?? (I already have the full-sized images located elsewhere on the site’s root folder.)
Below is the thumbnail-related functions.php code I have:
if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); add_image_size( 'custom_thumb', 150, 150, true); } if (function_exists('add_filter')) add_filter( 'the_excerpt', 'excerpt_thumbnail' ); function excerpt_thumbnail($excerpt){ if(is_single()) return $excerpt; global $post; if ( has_post_thumbnail() ) { $img .= '<a>ID).'">'.get_the_post_thumbnail($post->ID, 'custom_thumb').'</a>'; } else { $img = ''; } return $img.$excerpt; }Any assistance would be *much* appreciated.
The topic ‘Thumbnails Suddenly Stopped Working’ is closed to new replies.