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