• Hi everyone,

    I want to set up an image gallery with jpgs from a directory placed at the wordpress root. Its content is accessible by URL and managed externally by a bash script and updated through sftp.

    I have found many cool galleries/carousels that would work but WordPress media library allows only static images that have to be uploaded manually through admin.

    Is there any way to display dynamic content without going though a dev. with some js and ajax ? Or any solution that might help me.

    Thank you all.

    • This topic was modified 3 years, 10 months ago by Jan Dembowski.
Viewing 1 replies (of 1 total)
  • Moderator threadi

    (@threadi)

    You can also import images to the Media Library in another way, even automatically. Have a look at the comments, they contain many examples: https://developer.wordpress.org/reference/functions/wp_insert_attachment/

    So you could use e.g. a WP-Cron or System-Cron to regularly import new added images. If necessary, you can also start this via the bash script after it has uploaded new images.

    Also you could import the images directly into WordPress via REST-API instead of FTP: https://developer.wordpress.org/rest-api/reference/media/#create-a-media-item

    Since these are all very individual requirements, you probably won’t find anything ready-made for this. The same is true for the other way: don’t import the images but embed them directly into WordPress as a gallery. This would also probably only be possible through individual development.

Viewing 1 replies (of 1 total)

The topic ‘Dynamic images carousel’ is closed to new replies.