Support » Plugins and Hacks » Have gallery thumbnails linked directly to file URL instead of attachment ID?
8 years, 9 months ago
I want to use the built in gallery-feature, but I don’t want the thumbnails to link to attachment.php, but directly to the images just as you can do when inserting separate thumbnails.
Tried with replacing wp_get_attachment_link($id, $size, true); with wp_get_attachment_url($post->ID) (just a thought..) but it had no effect.
wp_get_attachment_link($id, $size, true);
Anyone who can help?
8 years, 8 months ago
I was looking for a solution in a similar situation too!
Anyone found a workaround??
8 years, 7 months ago
I would really really really appreciate some assistance… 😀
Try out my Cleaner Gallery plugin.
8 years, 5 months ago
wp_get_attachment_link($post->ID, 'thumbnail'); doesn’t works, allways retrieves a fullsize image, if is an image.
PD: Greenshady… emmm, thxs… but, IMHO, is not necessary a plugin to build a simple list of attachments thumbnails :S
We only need this function works correctly.