wp_get_attachment_image_src($ID,'thumbnail') not working?

0

I have page with a series of thumbnails that was working up until today.

I was using the following code:

$episode_imageID    = $episodes->get_field('celebrity_image.ID');

// data cleanup
$episode_image_array = wp_get_attachment_image_src($episode_imageID,'thumbnail');
$episode_image_src = $episode_image_array[0];

What is happening now is when I loop through all my pods, I get the correct thumbnails images for every pod except one...one image is only showing the normal image squished down to thumbnail size. For some reason every other image works without a hitch.

asked Aug 16 '10 at 8:03

redconservatory

77

edited Aug 16 '10 at 8:03

add comment
enter at least 15 characters

2 Answers

1

All image processes are handled by wordpress, pods are just saving image ids for pod items (you can find all pods uploads in the media tab). Have you tried deleting and then reuploading that image?

answered Aug 16 '10 at 10:50

Fike

208

I tried three times...re-naming it...saved it as a png instead of a jpeg...no luck ;-( – redconservatory Aug 18 '10 at 3:07
add comment
enter at least 15 characters
1

If you have multiple images uploaded, $episode_imageID may actually be an array. In that case, you should add a check to see if it's an array and if it is pull $episode_imageID[0]

answered Aug 17 '10 at 3:11

sc0ttkclark

2936

Good point...will remember it for the future. After some more trial-and-error and some help on #wordpress, I discovered it probably has something to do with the new crop functions/my browser...after clearing all my cookies it seemed to work again. – redconservatory Aug 18 '10 at 3:09
add comment
enter at least 15 characters