• Hi together,

    I am testing the built in WordPress Gallery function. So far everything works pretty well. The only thing that bothers me is that the image on a galleries attachement page is linked to the actual JPG file.
    The code that outputs that link is:
    <a href="<?php echo wp_get_attachment_url($post->ID); ?>">

    I would like to change that link to the next attachements page but can not figure out how to do this.

    Does anybody have an idea on how to do that?

    Thanks a lot,
    Martin

Viewing 1 replies (of 1 total)
  • Thread Starter mfuchs

    (@mfuchs)

    Maybe that has to do with a “adjacent_image_link” function but I can’t figure out what this does…

Viewing 1 replies (of 1 total)
  • The topic ‘Removing link to JPG file when using gallery function’ is closed to new replies.