WordPress.org

Forums

WP Gallery Custom Links
[resolved] Bulk change of gallery urls - possible? (3 posts)

  1. adredwood
    Member
    Posted 1 year ago #

    Hi there - this is a fantastic plugin that does exactly what I need, but as I upload a lot of images I seem to spend quite a lot of time adding the custom urls to each image. Is it possible to bulk/batch add urls to the Gallery Link URL field?

    Thanks,

    Andy (:

    https://wordpress.org/plugins/wp-gallery-custom-links/

  2. fourlightsweb
    Member
    Plugin Author

    Posted 1 year ago #

    There's no bulk image import tool or anything, but if you were looking for a way to set custom URLs programatically (ie if you were writing a script/plugin to do some kind of bulk image import), you could use something like the following:

    update_post_meta($post_id_of_uploaded_image, '_gallery_link_url', $some_custom_url);

    and that would add a custom url for each image as it's added to WordPress through your script that this plugin could pick up and use later.

  3. adredwood
    Member
    Posted 1 year ago #

    Thanks alot, but I'm afraid I'm not yet at the stage of writing plugins, in fact I would have no idea how to institute this at all. But if I ever learn, I'll come back to this as a reference.

    Thanks again.

    Andy (:

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Gallery Custom Links
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic