• Resolved SRD75

    (@srd75)


    Hi,

    I have a list of posts in a CSV: title, content, category, and a list of image URLs separated by a comma.

    Assuming I am using a generic theme, how could I display a gallery from the list of image URLs, if I import those URLs into a custom field?

    I am thinking I could adjust the template’s single.php, but I’m not a developer unfortunately.

    Thanks,
    Steve

    • This topic was modified 5 years, 3 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 4 replies - 1 through 4 (of 4 total)
  • Your list is exported from your database? Or your list is from an external source?
    Or you can import your list?

    Why would you put the URLs into a custom field when you could just attach the images to the post? The built-in gallery shortcode (looks like [gallery]) will show all of the images attached to a post. You can add and subtract images without changing the shortcode. Nothing extra needed for a theme, since it’s part of the content of the post.
    Alternatively, there are a lot of plugins that do galleries different ways, either with attached images or a folder name. But showing the images should always be part of the content (so it’s done in the editor or with a plugin), and hence the theme is not involved.

    Thread Starter SRD75

    (@srd75)

    The CSV has been imported using WP All Import, and one of the fields is a list of external image URLs.

    Because they’re external images hosted by a public image library, I can’t attach them to the post, the only to do that would be to download them into the Media Library, which I don’t want to to due to the large number of images.

    Search the various plugins available for galleries, but leave the theme alone.
    You can try https://www.ads-software.com/plugins/external-media-without-import/ and then any gallery would work.

    Thread Starter SRD75

    (@srd75)

    Thanks Joy,

    I decided to import the images into the Media Library after all.

    The shortcode [gallery] displays them well, thank you.

    Cheers,
    Steve

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘list of urls into a gallery’ is closed to new replies.