Hainesy82 – You rock! This solution works perfect, thanks for posting it!
When I do do this
$link = wp_get_attachment_link($id, $size, true);
change it to:
$link = wp_get_attachment_link($id, $size, false);
It makes my thumbs in the post go to .jpg files instead of the post page.
I want to insert [gallery] but have thumbs go to the page with the pic on it (which is a medium size picture), and when you click the med picture I want it to go to the URL I specified. Anybody figure this out yet? I am using Version 2.6.2
whooami – you’re a dick
vad111 – I had the same problem. I chmod the file giving me an error to 777. You might try doing a chmod to 755 or 777 and see if that works or contact your hosting company if you have managed hosting.