Removing link to JPG file when using gallery function (2 posts)

  1. mfuchs
    Posted 6 years ago #

    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,

  2. mfuchs
    Posted 6 years ago #

    Maybe that has to do with a "adjacent_image_link" function but I can't figure out what this does...

Topic Closed

This topic has been closed to new replies.

About this Topic