How to Connect Google Drive to your WordPress Media Library
Google Drive offers 15 GB of free cloud storage to all Google account users. With newer Android phones people can auto upload photos to their Google Drive account. Recently one of our users asked us if if it was possible to connect Google Drive with WordPress. Well ofcourse it is, there’s a plugin for that. In this article, we will show you how to connect Google Drive to your WordPress media library.
First you need to create a publicly accessible folder in your Google Drive. Log in to your Google Drive account and create a new folder. Click on the share icon and on the share popup screen click on the Change link next to Private – Only you can access.
On the next popup, you need to select Public on the web option and click the save button.
Your Google Drive folder is now publicly viewable. You need to copy the folder ID from the link to share, you will need this ID later.
In the next step, you need to install and activate the Google Drive Media Library plugin. Upon activation, visit Media » Google Drive Media Library to configure the plugin.
On the plugin’s settings page, you need to click on the Mapping Folder tab and paste the folder ID you copied earlier. Click the save button and the plugin will attempt to locate your Google Drive folder.
Now you can upload files in your shared folder. To load those files into WordPress media library, you need to come back to Media » Google Drive Media Library and click on File Mapping tab. Enter the name of the file you want to map.
After you have saved the file, the plugin will start displaying them in your WordPress media library. You can edit the media, and insert it into your WordPress posts and pages. The file will still be served from Google’s content delivery network.
We hope this article helped you connect Google Drive to your WordPress media library.