If you run your own WordPress site, there are many things you can do to save file space and save your WordPress storage in general. For example, you can optimize images for the web to reduce their size while maintaining their quality, or you can back up your files using one of the many WordPress backup plugins available. But it’s another great way to store all your pictures and documents and save some storage space. Using one of the online cloud services such as Google Drive. All you have to do is connect your Google Drive to your WordPress media library and you will be able to export files from this popular service directly to your WordPress website.
Fortunately, connecting Google Drive to WordPress is pretty easy. In this article, we will show you all the necessary steps for this.
Benefits of Connecting Google Drive to Your WordPress Media Library
As one of the most used cloud storage services today, google drive It is a useful add-on for anyone who deals with online data, whether for personal or business purposes. Well, Google Drive offers 15GB of free cloud storage to all Google account users. And it can definitely improve the way you process and store your website content.
By connecting your Google Drive directly to the WordPress media library, you will be able to export all your photos, images and other files you plan to use directly to your website and attach them to any page or post. This can benefit you whether you run any type of blog, a news publication, an online store, a photography website, or any type of online portfolio.
Without further ado, let’s see how you can connect Google Drive to your WordPress Media Library.
Connecting Your Media Library to Google Drive with a Plugin
First of all, you have to install a WordPress plugin called External Media.
After installation and activation of the plugin, to go Settings >> External Media to connect the plugin to your Google Drive and adjust it according to your preferences.
Once there, you will see various tabs that allow you to connect to different storage services like Dropbox, OneBox and of course Google Drive. You should go to the Google Drive tab and Check the “Enable this plugin” option.
Just below, you’ll also see fields that require you to enter a Client and Application ID.
If you go to the address, you will be able to obtain both identities. Google Developer Console Go to page and create your own project. Therefore, for your next step, you should go there and start building your project by clicking the Continue button. By doing this, you will allow Google to enable the Google Picker API.
After that, you will need to click Go to credentials.
Just click on the link named as you will need a Client ID. Customer ID.
Next, you will be asked to configure the confirmation screen. Click Configure permission screen button.
You will be asked to choose how you want to configure and register your app. this Internal user type is available only if you are a G Suite user; therefore, if you are not, select External and Create button.
You will be taken to the OAuth permission screen where you have to give your app a name. shoot me Save When you’re done naming your app, press the button.
If you are not automatically redirected to the Credentials screen, click ID information Go to tab and then +Generate Credentials >> OAuth Client ID.
To choose web application for you Application type. you should too assign your client a name and your website URL as well as oAuth Callback URL. As for the latter, you will find this URL in the Google Drive settings of the External Media Plugin, at the very bottom of the screen (below the name). referral link).
shoot me Create Press the button.
A popup will appear with your customer ID information.
You should copy and paste this ID into the Client ID field of your plugin’s Google Drive settings. Also, in the App ID field, copy the first 12 digits (before the line) From your Customer ID:
Once you’re done copying the Client and Application IDs, configure the rest of the options according to your preferences and Save Changes button. This action will connect your WordPress site to your Google Drive.
Now you should go ahead and create a new page or post. shoot me Add media If you are using the classic editor, press or Gallery/Picture block >> media library If you are using Gutenberg.
Inside Upload files In the tab, you will now see the option to import your files from Google Drive.
After clicking on it, you will be taken to a window that allows you to select your Google account (if you have more than one). Click on the preferred account and a popup will appear asking you to allow access to your website to view and manage Google Drive files and folders.
Finally, you will be able to look through your files and folders and import them by clicking and clicking on said files. choose.
After importing all the files you want, you can add them from your media library anywhere on your pages and/or posts.
Finally, we should point out that any files you transfer from Google Drive to your WordPress media library will remain there, even if you disable the plugin in the future.
Collection
As one of the safest and most convenient ways to back up and access all your files, it’s no surprise that Google Drive is one of the most popular cloud services to date. And if you have a WordPress site, Connecting your Google Drive to your media library will greatly benefit the way you use and process your website content.. Not only will you have access to all the files in your Google Drive and add them directly to your website, but you’ll also have plenty of extra storage, which is valuable for any website, whether it’s a blog, an e-commerce. store or any other type of online business. As you can see from the steps we provided above, connecting Google Drive to WordPress is pretty easy. All you have to do is create an application, go through the options to get the client and application ID, add the provided client ID information to the External Media plugin and you’re all set.
Support our work ❤️
If you enjoyed this article, consider leaving a tip to help us keep publishing great content.

























