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.

Change access from Private to Public

On the next popup, you need to select Public on the web option and click the save button.

Making your folder public on the web

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.

Copying the folder ID from the link to share on Google Drive

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.

Paste folder ID to connect Google Drive folder to WordPress

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.

Adding a file from Google Drive to WordPress media library

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.

A file from Google Drive displayed in WordPress media library

We hope this article helped you connect Google Drive to your WordPress media library.

Leave a Reply