Title: Simple Google Photos Grid
Author: josheli
Published: <strong>2017 年 11 月 25 日</strong>
Last modified: 2025 年 5 月 4 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/simple-google-photos-grid.svg)

# Simple Google Photos Grid

 作者：[josheli](https://profiles.wordpress.org/uwonder/)

[下载](https://downloads.wordpress.org/plugin/simple-google-photos-grid.zip)

 * [详情](https://cn.wordpress.org/plugins/simple-google-photos-grid/#description)
 * [评价](https://cn.wordpress.org/plugins/simple-google-photos-grid/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/simple-google-photos-grid/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/simple-google-photos-grid/#developers)

 [支持](https://wordpress.org/support/plugin/simple-google-photos-grid/)

## 描述

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](https://josheli.com/knob/2017/11/21/simple-google-photos-a-wordpress-plugin/).
The code is also [available on Github](https://github.com/datvance/simple-google-photos-grid).

### Notes

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.

### Widget

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.

 * Title: Heading of the widget on your site. Default to empty.
 * Album URL: The full URL to your public gallery on Google Photos. URL must use
   one of the following domains: ‘photos.app.goo.gl’ or ‘photos.google.com’. Ideally
   should be the short, “shared” link (such as https://photos.app.goo.gl/G8EOLs5YtESchh4g1z).
 * Num Photos to Show: Even numbers probably work best. There’s a maximum number,
   not sure what it is, but it’s pretty low.
 * Num Photos per Row: How many photos to show per row? Probably some number that
   works well with Num Photos.
 * Cache Interval (in minutes): How long to cache photo URLs before checking the
   album on Google again. 0 for no cache.

### Shortcode

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, domain must be one of ‘photos.app.goo.gl’ or ‘photos.google.com’ – 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"]
    ```

## 屏幕截图

[⌊Two grids on a page, one placed with a shortcode and one placed with a widget.⌉⌊
Two grids on a page, one placed with a shortcode and one placed with a widget.⌉[

Two grids on a page, one placed with a shortcode and one placed with a widget.

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or 
    install the plugin through the WordPress plugins screen directly, or clone from
    Github.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress or with wp-cli.
 3. Configure:

## 评价

![](https://secure.gravatar.com/avatar/a6bd4ce0c7956d1f8e0db6cb1a3dfdc53151c6931c93fe50360bfa33e74875e2?
s=60&d=retro&r=g)

### 󠀁[Not perfect, but it does the job … free also!](https://wordpress.org/support/topic/not-perfect-but-it-does-the-job-free-also/)󠁿

 [GMRobbins](https://profiles.wordpress.org/gmrobbins/) 2023 年 9 月 7 日

I am not sure why this plugin has not gotten more attention. I have searched for
a similar plug that would take third-party images (Google Photos) and create a gallery.
Few offer it and those that do, are quite proud of their plugin ($$$). Yes, the 
gallery isn't great and I wish it would open the images in a lightbox, but I am 
extremely please with the plugin. My server is getting approching capacity and this
plugin keeps a gazillion photos off of it. Thanks for the plugin. I sure wish you'd
consider updating it!

![](https://secure.gravatar.com/avatar/7eee031ebf7ee0da6ff088351ed8b445d6367d5fd98b0d203d20b9935b0e1cd7?
s=60&d=retro&r=g)

### 󠀁[Simple and does the job](https://wordpress.org/support/topic/simple-and-does-the-job-18/)󠁿

 [stefanbommeli](https://profiles.wordpress.org/stefanbommeli/) 2018 年 1 月 21 
日

Perfect for simple and easy integration and use. Maybe you can ad a Link on the 
foto to go to the fotodetail instead of the gallery-overview?

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/simple-google-photos-grid/reviews/)

## 贡献者及开发者

「Simple Google Photos Grid」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ josheli ](https://profiles.wordpress.org/uwonder/)

[帮助将「Simple Google Photos Grid」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-google-photos-grid)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/simple-google-photos-grid/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/simple-google-photos-grid/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/simple-google-photos-grid/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/simple-google-photos-grid/)。

## 更新日志

#### 1.6

 * Fix CVE-2025-46503

#### 1.5

 * Fixed notices in shortcode

#### 1.4

 * Fixed uninstall and shortcode bugs

#### 1.3

 * Added “number photos per row” configuration/attribute to have grids other than
   2×2

#### 1.2

 * Fixed bug if more than one grid on a page

#### 1.1

 * Added shortcode

#### 1.0

 * Initial release

## 额外信息

 *  版本 **1.6**
 *  最后更新：**1 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.8.11**
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-google-photos-grid/)
 * 标签
 * [album](https://cn.wordpress.org/plugins/tags/album/)[gallery](https://cn.wordpress.org/plugins/tags/gallery/)
   [Google Photos](https://cn.wordpress.org/plugins/tags/google-photos/)[photos](https://cn.wordpress.org/plugins/tags/photos/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-google-photos-grid/advanced/)

## 评级

 4.5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/simple-google-photos-grid/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/simple-google-photos-grid/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/simple-google-photos-grid/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/simple-google-photos-grid/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/simple-google-photos-grid/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/simple-google-photos-grid/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/simple-google-photos-grid/reviews/)

## 贡献者

 *   [ josheli ](https://profiles.wordpress.org/uwonder/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/simple-google-photos-grid/)