이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

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. The code is also available on Github.

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. Ideally should be a short, “shared” link (such as https://photos.app.goo.gl/G8EOLs5YtESchh4g1), but any Google Photos URL should do.
  • 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
– 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.

설치

  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:

후기

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!
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 평가 읽기

기여자 & 개발자

“Simple Google Photos Grid”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Simple Google Photos Grid”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

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