Envira Gallery Blog

Digital Photography Tips, Tutorials and Resources

Connect Your Google Drive With WordPress

How to Connect Your Google Drive with WordPress Media Library

by Waseem Abbas on Dec 22, 2016

Share This Post!

Do you want to sync your Google Drive with WordPress? You may have photos saved to Google Drive that you want to use on your site. In this tutorial, we will share how to connect your Google Drive with WordPress Media Library.

Since Google Drive offers 15 GB free cloud storage to all its users, you can utilize this space and connect your Google Drive with WordPress.

Mobile operating systems like Andriod and iOS also allow you to upload photos from your phone to Google Drive automatically. That means you can upload photos from your phone and connect them to WordPress via Google Drive.

To connect your Google Drive with WordPress, you’ll need to follow these 5 steps:

  • Step 1. Create a publicly accessible folder in Google Drive
  • Step 2. Copy the folder ID from link to share
  • Step 3. Install and activate Google Drive Media Library plugin
  • Step 4. Go to the plugin’s settings and add your folder ID
  • Step 5. Map your media files into WordPress

Ready to get started? Let’s go!

Step 1: Create a Publicly Accessible Folder in Google Drive

First thing you need to do is login to your Google Drive and create a new folder.

New Folder

Now you should click on the share icon and click on the Share settings link.

Share Settings

You will see a popup. Click on the Advanced link on the bottom right of the popup, and then click on the Change link.

Change Settings

Next you will see another popup. You’ll need to click on the Public on the web settings and hit the Save button.

Share Publicly

Now, your newly created folder in Google Drive is publicly accessible.

Step 2: Copy the Folder ID From Link to Share

Next, go ahead and copy the folder ID from the Link to share field.

Folder ID

(You will need this ID in Step 4.)

Step 3: Install and Activate Google Drive Media Library Plugin

Next, you’ll need to install and activate the Google Drive Media Library plugin. Simply login to your WordPress backend and go to Plugins » Add New.

In the search bar, you should type Google Drive Media Library, and you will see the plugin below.

Install Plugin

Once you click on the Install Now button, it will change into a blue Activate button. Click on it to activate this plugin.

Activate Plugin

Your plugin is activated. (For more on installing plugins, check out this step by step guide on how to install a WordPress plugin.)

Step 4: Go to the Plugin’s Settings and Add Your Folder ID

Next you need to go to Media » Google Drive Media Library and click on the Mapping Folder tab.

Add the folder ID that you copied in the previous step, and click on the Save button.

Add ID

Now go ahead and upload your photos files to the Google Drive folder.

Step 5: Map Your Media Files into WordPress

Lastly, go back to Media » Google Drive Media Library and click on the Mapping File tab.

You’ll need to add the name of the media file and description. Then hit the Save button.

Map File

Once the file is saved, you will find it inside your WordPress media library.

Note: the file is still stored on your Google Drive, and served from Google’s content delivery network. However, you will be able to edit the file settings in WordPress and use it inside your posts or pages.

Drive Link

That’s all. We hope this tutorial has helped you to learn how to connect your Google Drive with WordPress media library. You may also want to check out our guide on how to import your photos from Dropbox to WordPress Gallery.

If you like this tutorial, then please follow us on Facebook and Twitter for more free WordPress guides.

Share This Post!

Comments

  1. This plugin looks like it isn’t available anymore in WordPress. Is there another plugin that will allow Enviro to access photos via Google Drive so they aren’t stored locally?

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.