Image and video gallery from Google Drive


Image and video gallery from Google Drive is a plugin for WordPress that connects your site to your Google Drive. With this plugin, you can select any folder in your Drive or a Shared drive and the plugin will convert it into a gallery, displaying any photos or videos in a page or a post on your website. Any folders and their subfolders will also be displayed in the gallery as nested galleries.

All the data is sourced from Google Drive with nothing but the plugin configuration being a part of your website. This enables your site to load faster as the images are loaded from Google and not from your hosting. It may also save you costs for your site hosting, as the big files of the gallery are not stored as part of your site. On top of that, if you ever decide to move or reinstall your site, simply install this plugin again on the new site and your old galleries will still be there and working.

Having the photos in Google Drive also gives you a familiar and easy-to-navigate UI for gallery management. You can give individual people or groups granular permissions to the Drive folder, making them able to add photos to a particular gallery without giving them full access to your site. They will then be able to manage the content of the gallery through Google Drive, without having to learn how to work with WordPress. You can also manage all content in your organization with Shared drives owned by your organization’s G Suite.

Using this plugin is very straightforward. Once the plugin is installed and configured, you can add a Google Drive gallery to any page or post. If you are using WordPress 5 or newer with the block editor (i. e. Gutenberg), there is a block that you can add that will allow you to choose a folder with a graphical user interface. It also makes it possible to configure each individual gallery very easily, should you want to do that. If you are using an older WordPress version or are still using the classic editor, there is a shortcode you can use instead of the block.

If you want to see how to install, configure and use the plugin, visit our documentation. To see the plugin in action, head on to the demo page.


  • Display any Google Drive folder as a gallery
  • Subfolders are automatically displayed as nested galleries – no need to configure them
  • You can restrict the plugin to a certain folder (we call it the “root” folder), making sure that no data outside this root folder will ever be displayed on your site
  • Insert a gallery with a shortcode or with a click of a button
  • Provides a Gutenberg block, making sure that your galleries will work even in WordPress 5
  • Also works with Shared drives (formerly known as Team drives)
  • Supports videos as well

Minimal requirements

  • WordPress 4.9.6 or higher
  • PHP 5.6 or higher



  • A simple gallery

  • A gallery with subfolders

  • Subfolder view

  • An open image

  • Basic options

  • Advanced options


This plugin provides 1 block.



  1. Download and install the plugin from the WordPress plugin directory or from GitHub
  2. Create a Google app and configure the plugin
  3. Select a root directory for the plugin to use
  4. Add a gallery


How to configure this plugin?

See our documentation.

How do I create a Google app?

We have a special page in our documentation just about that.

What are the other options for this plugin?

For more info about all the options see the documentation page about advanced options.

How do I create a shortcode?

To show a Google Drive gallery add the shortcode [sgdg path="Folder name"] to the page where “Folder name” is a folder in the root directory of the plugin.
It is also possible to use subdirectories with the shortcode [sgdg path="Folder name/subfolder/subsubfolder"].
If no path is provided, then the root directory itself is used.

Why isn’t my video shown?

The plugin only shows videos that can be played by the browser. Unfortunately, at the moment, different browsers support different video formats. If you want the best support, we recommend using MP4. Detailed information about which formats are supported by each browser can be found on Wikipedia.


June 23, 2019
Great plugin. It works perfectly and saves a lot of time and space on the site server. Once configured the developer interface of your Google Drive and made the connection (it takes some time, but not because of the plugin), publishing a gallery with the shortcode is really simple.
May 6, 2019
I am using the plugin for my site. It is the best. But in my new site i am facing some problem. I can't gant permission from my google drive. It's showing 'Error 500' Note: i have configured Google drive outh correctly. please help me if you need img or more information plz leave your facebook address or email
May 1, 2019
Un plugin suficientemente documentado y que me funcionó a la primera. Se adapta a la perfección a mis necesidades y me facilitó mucho mi trabajo debido a las limitantes de hosting que tengo, así ya podré almacenar y mostrar fotos sin saturar mi espacio de disco. ¡Muchas gracias!
Read all 13 reviews

Contributors & Developers

“Image and video gallery from Google Drive” is open source software. The following people have contributed to this plugin.


“Image and video gallery from Google Drive” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Image and video gallery from Google Drive” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Fixed a bug causing galleries not to load
  • Slightly tweaked the grid layout


  • Added video support
  • Documented all of the source code


  • Incorporated updates to Google Drive and its API, namely the rebranding of Team Drives as Shared drives
  • Added support for image captions sourced from the “description” field in Google Drive
  • Added more quality control with more still to follow


  • Added support for pagination of gallery items with configurable page size and optional (enabled by default) autoloading
  • Added option to hide a part (a prefix to be more precise) of folder names. This is useful when folders are ordered by name to define own custom ordering
  • Fixed an issue with incorrect Authorised JavaScript origin for websites located in a subdirectory
  • Added more checks to plugin options to ensure they can’t break it
  • Enabled support for caching plugins


  • Added the option to override some settings for individual galleries using shortcode attributes or the Gutenberg block
  • Fixed loading indicator styling inconsistency


  • Fixed lightbox arrow styling on some templates
  • Better error reporting for Root selection, TinyMCE and Gutenberg plugins
  • Better loading animation
  • Clickable breadcrumbs in Root selection, TinyMCE and Gutenberg plugins


  • Updated basic settings to reflect changes to the Google developer console


  • Fixed error with multiple blocks not working


  • Image ordering by time now uses EXIF DateTime
  • Partialy fixed issue with url being overriden when not terminated by a slash
  • Fixed imprecise directory item counts
  • Fixed issue with other plugins overriding styles



  • Fixed potential collision with global composer
  • Directory item counts with icons instead of text
  • Added more error messages
  • Fixed infinite spinner on empty gallery
  • Not displaying empty subgalleries


  • Fixed more problems with the justified layout
  • Open images now have a unique and permanent address so a link to a particular image can be copied and sent


  • Fixed multiple galleries in one page
  • Fixed some aspect ratios getting squished
  • Not displaying breadcrumbs when there is nowhere to navigate


  • Fixed an issue with images not being displayed


  • Galleries loading with AJAX
  • Dark theme


  • Using Flickr-style justified layout


  • Performance optimisations for subdirectories


  • Fixed missing ordering options


  • Moved settings to 2 top-level pages
  • Changed the Google API redirect URI
  • Handling unauthorized plugin in Block & Shortcode


  • Fixed error with Gutenberg block overwriting its configuration


  • Added proper support for dynamic columns
  • Added a Gutenberg block


  • Added the option to order images and directories (separately) – by time or name, ascending or descending


  • Added graphical editor for TinyMCE


  • The first version
  • Required WordPress 4.9.6 and higher
  • Required PHP 5.6 and higher