{"id":27,"date":"2018-08-09T17:13:41","date_gmt":"2018-08-09T17:13:41","guid":{"rendered":"https:\/\/www.publicalbum.org\/blog\/?p=27"},"modified":"2024-08-25T19:35:52","modified_gmt":"2024-08-25T19:35:52","slug":"wordpress-google-photos-album-plugin","status":"publish","type":"post","link":"https:\/\/www.publicalbum.org\/blog\/wordpress-google-photos-album-plugin","title":{"rendered":"How do I add Google Photos album to WordPress?"},"content":{"rendered":"<h2>WordPress Google Photos album plugin<\/h2>\n<p>Yes, it&#8217;s not complicated with the help of the following WordPress plugin. No images need to be uploaded, just insert links to them.<\/p>\n<p>When I created a tool to generate <a href=\"https:\/\/www.publicalbum.org\/blog\/embedding-google-photos-albums\">embed Google Photos album<\/a>, I also wanted to use it on my blog. WordPress is a popular and advanced tool, so I&#8217;ve been trying to do this plugin with the following demo:<\/p>\n<p><!-- publicalbum.org -->\n<div class=\"pa-gallery-player-widget\" style=\"display:none;width:100%;height:480px;\" data-link=\"https:\/\/photos.app.goo.gl\/CSV7NDstShTUwUZq5\" data-found=\"4\" data-title=\"Mr. Monstro \u00b7 May 4, 2018\u2009\u2013\u2009Feb 17, 2019 \ud83d\udcf8\"><object data=\"https:\/\/lh3.googleusercontent.com\/pw\/AP1GczNUNuva0hpWf0Fu63ZGGHNvXoCWXsASvPaAOjOPx4haXpbbxY5mgCHP2higgYSveDSWDWfI5xtvPMlevebgelibyS0oX3s3OzkyyJV0rUkNPxjlCTg=w640-h480\"><\/object><object data=\"https:\/\/lh3.googleusercontent.com\/pw\/AP1GczM0_Q0fYRA7N-5Z8QgjbTb9v97v07P-3A1uaA32ggafkHmnN-y_S74jn_99ldFa51tMJceGK1yjaJamHtLqWbdBYGfh4_b8jbkn-HeYrnaBRmC_B5E=w640-h480\"><\/object><object data=\"https:\/\/lh3.googleusercontent.com\/pw\/AP1GczM2myJ07OQVK2S8iTv45det8nXC4p3fzDcspl3riqXD0Bf4-ZcWgllUmlDSdOZYQLri2Xg6O9D_s2YNmn2karFYh4aSLyzpSuV1fK-M5nkbjnY6zks=w640-h480\"><\/object><object data=\"https:\/\/lh3.googleusercontent.com\/pw\/AP1GczMp2yBDJHry71V-dnm2wxVsqVnaXJFHvDW35AmS36fDXfEqMpQerzlaY19TP_7RY6YgMXvJgTibNnFAymiaV7-r7IamcmKGJaBn0XTw8M7UtBPMamo=w640-h480\"><\/object><\/div>\n<small>Here is a demo with Mr. Monstro photo stream included with WordPress plugin.<\/small><\/p>\n<p><!--more--><\/p>\n<p>The principle is much simpler than my previous tool and has limited capabilities. But it uses the full &#8220;Player&#8221; feature to conveniently view photos.<\/p>\n<h5>How to do it?<\/h5>\n<p>1) First of all, install the <a href=\"https:\/\/wordpress.org\/plugins\/embed-google-photos-album-easily\/\" target=\"_blank\" rel=\"noopener noreferrer\">Embed Google Photos Album plugin<\/a> on your WordPress and activate it.<\/p>\n<p>2) When ready, you can use the following shortcode entry.\u00a0Instead of that link, use a link to your shared Google Photos album.<\/p>\n<p><code>[embed-google-photos-album \"https:\/\/photos.app.goo.gl\/CSV7NDstShTUwUZq5\"]<\/code><\/p>\n<p>3) Save \/ Update post.<\/p>\n<p>That is all.<\/p>\n<h6>How do I set plugin properties?<\/h6>\n<p>Shortcode supports these parameters:<\/p>\n<ul>\n<li><code>link<\/code> &#8211; <code>[string]<\/code> public link of Google Photos album<\/li>\n<li><code>width<\/code> &#8211; <code>[int | 'auto']<\/code> set widget width in pixel or &#8220;auto&#8221; to stretch to 100%<\/li>\n<li><code>height<\/code> &#8211; <code>[int | 'auto']<\/code> set widget height in pixels or &#8220;auto&#8221; to stretch to 100%<\/li>\n<li><code>image-width<\/code> &#8211; <code>[int]<\/code> image max-width in pixels, default is 1920<\/li>\n<li><code>image-height<\/code> &#8211; <code>[int]<\/code> image max-height in pixels, default is 1080<\/li>\n<li><code>slideshow-autoplay<\/code> &#8211; <code>[true | false]<\/code> start slideshow in normal view (currently not allowed by decorator)<\/li>\n<li><code>slideshow-delay<\/code> &#8211; <code>[true | false]<\/code> slideshow delay in seconds, default is 5 seconds.<\/li>\n<li><code>slideshow-repeat<\/code> &#8211; <code>[true | false]<\/code> Enable or disable repeat slideshow, delfault is <code>true<\/code><\/li>\n<li><code>expiration<\/code> &#8211; <code>[int]<\/code> Timeout of cache <code>[ms]<\/code>. Experimental property to setup autoupdate since version 2.0.8.<\/li>\n<\/ul>\n<p>Examples:<br \/>\n<code>[embed-google-photos-album \"https:\/\/photos.app.goo.gl\/CSV7NDstShTUwUZq5\"]<\/code><\/p>\n<p><code>[embed-google-photos-album link=\"https:\/\/photos.app.goo.gl\/CSV7NDstShTUwUZq5\"]<\/code><\/p>\n<p><code>[embed-google-photos-album link=\"https:\/\/photos.app.goo.gl\/CSV7NDstShTUwUZq5\" width=\"720\" height=\"540\"]<\/code><\/p>\n<p>In some cases, it may be better to embed code generation directly into the WordPress template. Since <strong>2.0.7<\/strong> the <code>getcode()<\/code> method can be used using the following example:<\/p>\n<pre><code>&lt;?php echo (new <strong>Pavex_embed_google_photos_album<\/strong>())\n   -&gt;\u00a0<strong>getcode<\/strong>('https:\/\/photos.app.goo.gl\/CSV7NDstShTUwUZq5',\n      0, 480, 1920, 1080\n   );\n?&gt;<\/code><\/pre>\n<h6>How do I update my album?<\/h6>\n<p>The album will automatically update as soon as you save or update your post.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress Google Photos album plugin Yes, it&#8217;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, &hellip; <a href=\"https:\/\/www.publicalbum.org\/blog\/wordpress-google-photos-album-plugin\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How do I add Google Photos album to WordPress?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,8],"tags":[],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-google-photos","category-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How do I add Google Photos album to WordPress?<\/title>\n<meta name=\"description\" content=\"Realy simple way without iserting code into site, how to embed Google Photos album into Wordpress post with simple shortcode plugin.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.publicalbum.org\/blog\/wordpress-google-photos-album-plugin\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How do I add Google Photos album to WordPress?\" \/>\n<meta property=\"og:description\" content=\"Realy simple way without iserting code into site, how to embed Google Photos album into Wordpress post with simple shortcode plugin.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.publicalbum.org\/blog\/wordpress-google-photos-album-plugin\" \/>\n<meta property=\"og:site_name\" content=\"Public album .org\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-09T17:13:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-25T19:35:52+00:00\" \/>\n<meta name=\"author\" content=\"Pavex\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pavex\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.publicalbum.org\/blog\/wordpress-google-photos-album-plugin\",\"url\":\"https:\/\/www.publicalbum.org\/blog\/wordpress-google-photos-album-plugin\",\"name\":\"How do I add Google Photos album to WordPress?\",\"isPartOf\":{\"@id\":\"https:\/\/www.publicalbum.org\/blog\/#website\"},\"datePublished\":\"2018-08-09T17:13:41+00:00\",\"dateModified\":\"2024-08-25T19:35:52+00:00\",\"author\":{\"@id\":\"https:\/\/www.publicalbum.org\/blog\/#\/schema\/person\/1415f3e82b03ca14f8aa2f18468a5b87\"},\"description\":\"Realy simple way without iserting code into site, how to embed Google Photos album into Wordpress post with simple shortcode plugin.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.publicalbum.org\/blog\/wordpress-google-photos-album-plugin#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.publicalbum.org\/blog\/wordpress-google-photos-album-plugin\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.publicalbum.org\/blog\/wordpress-google-photos-album-plugin#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.publicalbum.org\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How do I add Google Photos album to WordPress?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.publicalbum.org\/blog\/#website\",\"url\":\"https:\/\/www.publicalbum.org\/blog\/\",\"name\":\"Public album .org\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.publicalbum.org\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.publicalbum.org\/blog\/#\/schema\/person\/1415f3e82b03ca14f8aa2f18468a5b87\",\"name\":\"Pavex\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.publicalbum.org\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e47c6671479e0609362ab70337cfac20?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e47c6671479e0609362ab70337cfac20?s=96&d=mm&r=g\",\"caption\":\"Pavex\"},\"url\":\"https:\/\/www.publicalbum.org\/blog\/author\/pavex\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How do I add Google Photos album to WordPress?","description":"Realy simple way without iserting code into site, how to embed Google Photos album into Wordpress post with simple shortcode plugin.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.publicalbum.org\/blog\/wordpress-google-photos-album-plugin","og_locale":"en_US","og_type":"article","og_title":"How do I add Google Photos album to WordPress?","og_description":"Realy simple way without iserting code into site, how to embed Google Photos album into Wordpress post with simple shortcode plugin.","og_url":"https:\/\/www.publicalbum.org\/blog\/wordpress-google-photos-album-plugin","og_site_name":"Public album .org","article_published_time":"2018-08-09T17:13:41+00:00","article_modified_time":"2024-08-25T19:35:52+00:00","author":"Pavex","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Pavex","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.publicalbum.org\/blog\/wordpress-google-photos-album-plugin","url":"https:\/\/www.publicalbum.org\/blog\/wordpress-google-photos-album-plugin","name":"How do I add Google Photos album to WordPress?","isPartOf":{"@id":"https:\/\/www.publicalbum.org\/blog\/#website"},"datePublished":"2018-08-09T17:13:41+00:00","dateModified":"2024-08-25T19:35:52+00:00","author":{"@id":"https:\/\/www.publicalbum.org\/blog\/#\/schema\/person\/1415f3e82b03ca14f8aa2f18468a5b87"},"description":"Realy simple way without iserting code into site, how to embed Google Photos album into Wordpress post with simple shortcode plugin.","breadcrumb":{"@id":"https:\/\/www.publicalbum.org\/blog\/wordpress-google-photos-album-plugin#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.publicalbum.org\/blog\/wordpress-google-photos-album-plugin"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.publicalbum.org\/blog\/wordpress-google-photos-album-plugin#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.publicalbum.org\/blog"},{"@type":"ListItem","position":2,"name":"How do I add Google Photos album to WordPress?"}]},{"@type":"WebSite","@id":"https:\/\/www.publicalbum.org\/blog\/#website","url":"https:\/\/www.publicalbum.org\/blog\/","name":"Public album .org","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.publicalbum.org\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.publicalbum.org\/blog\/#\/schema\/person\/1415f3e82b03ca14f8aa2f18468a5b87","name":"Pavex","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.publicalbum.org\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e47c6671479e0609362ab70337cfac20?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e47c6671479e0609362ab70337cfac20?s=96&d=mm&r=g","caption":"Pavex"},"url":"https:\/\/www.publicalbum.org\/blog\/author\/pavex"}]}},"_links":{"self":[{"href":"https:\/\/www.publicalbum.org\/blog\/wp-json\/wp\/v2\/posts\/27"}],"collection":[{"href":"https:\/\/www.publicalbum.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.publicalbum.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.publicalbum.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.publicalbum.org\/blog\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":43,"href":"https:\/\/www.publicalbum.org\/blog\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":1130,"href":"https:\/\/www.publicalbum.org\/blog\/wp-json\/wp\/v2\/posts\/27\/revisions\/1130"}],"wp:attachment":[{"href":"https:\/\/www.publicalbum.org\/blog\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.publicalbum.org\/blog\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.publicalbum.org\/blog\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}