Have gallery thumbnails linked directly to file URL instead of attachment ID? (5 posts)

  1. Anna Johansson
    Posted 7 years 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.

    Anyone who can help?

  2. rgblog
    Posted 7 years ago #

    I was looking for a solution in a similar situation too!
    Anyone found a workaround??

  3. Anna Johansson
    Posted 7 years ago #

    I would really really really appreciate some assistance... :D

  4. Justin Tadlock
    WordPress God
    Posted 7 years ago #

  5. Covi
    Posted 6 years ago #

    wp_get_attachment_link($post->ID, 'thumbnail'); doesn't works, allways retrieves a fullsize image, if is an image.

    grrrrr :(

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic