WordPress Google Photos album plugin
Yes, it’s not complicated with the help of the following WordPress plugin. No images need to be uploaded, just insert links to them.
When I created a tool to generate embed Google Photos album, I also wanted to use it on my blog. WordPress is a popular and advanced tool, so I’ve been trying to do this plugin with the following demo:
Here is a demo with Mr. Monstro photo stream included with WordPress plugin.The principle is much simpler than my previous tool and has limited capabilities. But it uses the full “Player” feature to conveniently view photos.
How to do it?
1) First of all, install the Embed Google Photos Album plugin on your WordPress and activate it.
2) When ready, you can use the following shortcode entry. Instead of that link, use a link to your shared Google Photos album.
[embed-google-photos-album "https://photos.app.goo.gl/CSV7NDstShTUwUZq5"]
3) Save / Update post.
That is all.
How do I set plugin properties?
Shortcode supports these parameters:
link
–[string]
public link of Google Photos albumwidth
–[int | 'auto']
set widget width in pixel or “auto” to stretch to 100%height
–[int | 'auto']
set widget height in pixels or “auto” to stretch to 100%image-width
–[int]
image max-width in pixels, default is 1920image-height
–[int]
image max-height in pixels, default is 1080slideshow-autoplay
–[true | false]
start slideshow in normal view (currently not allowed by decorator)slideshow-delay
–[true | false]
slideshow delay in seconds, default is 5 seconds.slideshow-repeat
–[true | false]
Enable or disable repeat slideshow, delfault istrue
expiration
–[int]
Timeout of cache[ms]
. Experimental property to setup autoupdate since version 2.0.8.
Examples:
[embed-google-photos-album "https://photos.app.goo.gl/CSV7NDstShTUwUZq5"]
[embed-google-photos-album link="https://photos.app.goo.gl/CSV7NDstShTUwUZq5"]
[embed-google-photos-album link="https://photos.app.goo.gl/CSV7NDstShTUwUZq5" width="720" height="540"]
In some cases, it may be better to embed code generation directly into the WordPress template. Since 2.0.7 the getcode()
method can be used using the following example:
<?php echo (new Pavex_embed_google_photos_album())
-> getcode('https://photos.app.goo.gl/CSV7NDstShTUwUZq5',
0, 480, 1920, 1080
);
?>
How do I update my album?
The album will automatically update as soon as you save or update your post.
How can i disable autorepeat in wordpress plugin?
Hi Aze, You need revision 2.0.2 and add “slideshow-repeat” property to “false”.
Hi. Great plugin. Can I use it with cache plugin? As I know Google changes urls of photos.
Hi, I think it will be ok. Google photos link are relative stable in long time.
Thank you for your answer. I used Photonic for Google Photos. And I could not use caching plugin with Photonic because it uses such Google links that change every 30 minutes or something like that. But your plugin works great. Are your going to make Pro version with more options?
Is this plugin auto update slider if more images inserted in album does it access new images and shown on wordpress website.
Hi, you can refresh by post update or setup
expiration
feature.Great and easy plugin!
Is there a possibility to swipe only through the pictures without starting a slideshow?
Second question:
Is it possible to add the image description?
Actually the album title is always shown.
Hi Gerhard, Yes, both are possible by adding custom attributes into elements, when inserted directly (WordPress plugin does not support these features now). See Carousel slideshow and Gallery widgets July update.
Hi there, does it matter what size the images are stored in Google? Most of mine sync by my phone so are around 4mb and 4000 x 2000, does the plugin resize on display?
Worried about page speed?
Thank uou
Hi Gary, check attribute data-width, data-height to setup image size. See https://www.publicalbum.org/blog/carousel-slideshow-gallery-widget-july-update
Is it possible to change the background color from the default #000000?
Hi Nils, yes in version 2.1.2. See at “background-color”.