Digital Photography Tips, Tutorials and Resources
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.
Now you should click on the share icon and click on the Share settings link.
You will see a popup. Click on the Advanced link on the bottom right of the popup, and then click on the Change link.
Next you will see another popup. You’ll need to click on the Public on the web settings and hit the Save button.
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.
(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.
Once you click on the Install Now button, it will change into a blue Activate button. Click on it to activate this 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.
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.
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.
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.