We'll create fresh WordPress site with Simple Google Photos Grid installed. You have 20 minutes to test the plugin after that site we'll be deleted.
A simple, no-frills solution to display a Google Photos album on your site using a widget or a shortcode. There is only one layout option: grid. There is only one required attribute: album url. That’s it, that easy. See a demo and read more about the plugin. The code is also available on Github.
Your album on Google Photos must be “public”, which means you need to go into Google Photos on the web and set “Sharing options” to on, i.e. “Anyone with the link can see these photos and the people who’ve been invited or joined.”
Requires curl or similar to fetch the photo urls.
No support is provided. Probably no features will be added. You are free to ask, or to fork. Pull requests accepted.
Go to Appearance -> Widgets and a new widget named Simple Google Photos Grid should be available to use. Drag to your desired widget area and configure.
Place the shortcode in a post, page or theme.
[simple_google_photos_grid album-url=”https://photos.app.goo.gl/G8EOLs5YtESchh4g1″]
Available attributes are:
– album-url: (required) the url to a public Google Photos album
– number-photos: (optional) number of photos to display, defaults to 4
– number-photos-per-row: (optional) number of photos per row, defaults to 2
– cache-interval: (optional) length, in minutes, to cache the photo urls retrieved from Google, defaults to 15
[simple_google_photos_grid album-url="https://photos.app.goo.gl/G8EOLs5YtESchh4g1" number-photos="6" number-photos-per-row="3" cache-interval="120"]