wp_get_attachment_image_src($ID,'thumbnail') not working?
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.
edited Aug 16 '10 at 8:03
2 Answers
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?
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]


