WordPress.org

Ready to get started?Download WordPress

Forums

File Gallery
add an url for each picture of the gallery (5 posts)

  1. b.amine23
    Member
    Posted 3 years ago #

    hello

    i want to add a different url for each picture of the gallery so when someone's click on the image he will be redirected to the url

    thanks all

  2. Jennifer
    Member
    Posted 2 years ago #

    i am seeking an answer for this also. did you have any luck? it seems as though we are only able to add 1 url for all images in a gallery, even though i've specified a different url per each image in the media editor. thanks!

  3. Aesqe
    Member
    Plugin Author

    Posted 2 years ago #

    Hmm. I could maybe add option to specify which custom field's value you want to use as the link.

    You could then add a custom field named, for example, "custom_link", choose "custom field" from the "link to" drop down menu, and then input "custom_link" in the "custom field name" field.

    That would probably double the number of SQL queries for each gallery, I'll see if I can think up a better solution.

  4. Jennifer
    Member
    Posted 2 years ago #

    thank you so much for your response.

    when we upload each individual image, there is already a place in the WordPress admin/uploader for a url. that is where i add my urls per image to make them clickable to an external webpage. is it possible to have that as a "link to" option vs a custom field?

    i don't think that is even an option for the WordPress default gallery, so that would be HUGE for everyone.

    thank you again and again!

  5. Aesqe
    Member
    Plugin Author

    Posted 2 years ago #

    @Jennifer: that field's value isn't saved anywhere in the database, it's there only so you could set a link for the currently-viewed media, when it's inserted into the post editor.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic