Google Drive Embedder gives authors easy access to their Google Drive in a popup box, where they can select documents to embed directly into their post or page. Just as easily as picking a photo from the WordPress media gallery.
Documents can be embedded in-line, using Google’s read-only interactive viewer for your audience to read them. Documents can also be placed in your site as links to open up editable files (either in the same or a new browser tab), or downloaded straight to the computer.
You will need to set document sharing settings to ensure your website viewers have access to view your documents (e.g. at least ‘anyone with the link can view’ to be visible to all visitors).
This plugin requires that you also install the free (or premium) version of the popular Google Apps Login plugin
Displays many file types such as PDF, Word DOC, ZIP etc plus native Google docs (Spreadsheet, Drawing, etc). Step through a list of your Drive files or search to find the one you’re looking for.
- Viewer file link – full page Google viewer and editor
- Download file link – directly download file to your computer (disabled for native Google doc formats)
- Embed document – display most file types inline in your posts or pages (non-Google file types need sharing settings at least ‘anyone with the link can view’)
Useful for public websites or private intranets (all visitors should be able to view files as long as sharing settings are ‘anyone with the link can view’ or higher in Google Drive).
Works on all WordPress installations including multisite networks.
Please note that to embed folders, forms, images, and videos you will require the Premium or Enterprise version of this plugin.
Paid versions and Support
You can also purchase the premium or enterprise versions of Google Drive Embedder, including support.
The Premium version contains some important extra features:
- Browse My Drive, Recent Files, Starred, and Shared With Me tabs to locate Drive files the way you’re used to.
- Embed Folders: simply keep your Google Drive folder up-to-date with your files, and your staff or website visitors will always be able to view a list of the latest documents.
- Embed Images, Videos, and Forms: serve them directly from Google Drive, respecting your Google sharing settings.
- Google Calendars: pick from your Google Calendars and provide download links to ICAL or XML, or embed them directly in your site.
- Google Docs export: provide links to downloadable versions of Google Docs, e.g. Spreadsheets exported as PDF or Excel.
- Support and updates for one year.
The Enterprise version integrates Google Drive much more closely with your WordPress intranet, essentially allowing each
page or post on your intranet to host its own file attachments, completely backed by Drive.
This means you no longer need to manage Drive and your Intranet as two completely separate document sharing systems!
It also introduces advanced interactive embedded folders, where users can preview files and drill-down into subfolders all without
leaving your site.
It also contains all the features of the basic and premium versions.
Google Drive document embedding and one-click login will work for the following domains and user accounts:
- G Suite Basic (Google Apps for Work)
- G Suite Business (Google Apps Unlimited for Work)
- G Suite for Education (Google Apps for Education)
- G Suite for Non-profits (Google Apps for Non-profits)
- G Suite for Government (Google Apps for Government)
- Personal gmail.com and googlemail.com emails
Google Apps Login plugin setup requires you to have admin access to any G Suite domain (formerly Google Apps), or a regular Gmail account, to register and
obtain two simple codes from Google.
Google Apps Login
The Google Apps Login plugin (which you must also install)
allows existing WordPress user accounts to login to the website
using Google to securely authenticate their account. This means that if they are already logged into Gmail for example,
they can simply click their way through the WordPress login screen – no username or password is explicitly required!
Full support and premium features are also available for purchase:
Eliminate the need for G Suite / Google Apps domain admins to separately manage WordPress user accounts, and get peace
of mind that only authorized employees have access to the organizations’s websites and intranet.
Attribute options for [google-drive-embed …] shortcode
Important: please note that you cannot normally switch the style attributes around while keeping the url the same.
Most often, Google will require a different URL for the new link type, which can be obtained by opening the Drive Embedder dialog
The url pointing to the Drive file or resource. Note that most Google Drive files will required a different URL
depending on the style and other factors below.
style (defaults to ‘normal’)
Values: normal | download | embed
newwindow (defaults to ‘no’)
Values: yes | no
Only relevant when style=’normal’
Dimensions of the iframe to be ebedded.
Only relevant when style=’embed’.
Specified in pixels or as a percentage, e.g. ‘400’ or ‘100%’.
plain (defaults to ‘no’)
Values: yes | no
When set to ‘yes’, will NOT display the icon specified in “icon” below.
Only relevant when style=’normal’ or ‘download’.
URL to an icon file to display next to the link.
Only relevant when style=’normal’ or ‘download’; and when plain not set to “yes”.
Values: folder | image | calendar
Used by the premium plugin only for these special file types.
Text to display within the link to a ‘normal’ or ‘download’ file.
Add scrolling=”yes” to turn on scrolling within an iframe embed – especially useful for forms which otherwise might be cut off at the bottom.
The default for iframe style embeds is to have allowfullscreen as a default attribute so the
viewer can click into full screen mode if available for that file type.
Add allowfullscreen=”no” as a shortcode parameter to turn this off.
You can use custom CSS styles to affect some of the final results.
Example html code for style=’download’ or ‘normal’:
<p><span class=”gdm-drivefile-embed”><img src=”$icon” width=”16″ height=”16″ /> <a href=”$url”>$title</a></span></p>
Example html code for style=’download’ or ‘normal’, when plain=’yes’:
Example html code for style=’embed’:
Please get in touch if you would like to make suggestions for further CSS configurability – email firstname.lastname@example.org.
- How can I obtain support for this product?
Full support is available if you purchase the premium or enterprise license from the author via:
The paid plugins also support more file types (such as embedded Videos and Drive Folders) and allows you to
browse your Google Calendars to embed in your posts/pages.
Please feel free to email email@example.com with any questions (specifying Drive in the subject),
as we may be able to help, but you may be required to purchase a support license if the problem
is specific to your installation or requirements.
We may occasionally be able to respond to support queries posted on the ‘Support’ forum here on the wordpress.org
plugin page, but we recommend sending us an email instead if possible.
- How can I embed Drive Folders in my website?
You will need to purchase either the premium or enterprise version of Google Drive Embedder from
The Premium version will allow you to embed folders in a basic ‘iframe’ format.
For advanced ‘interactive’ folders, where users can preview files and drill-down into subfolders all without leaving your site,
please take a look at the
The Enterprise version of Google Drive Embedder integrates Drive much more closely with your WordPress intranet,
essentially allowing each page or post on your intranet to host its own file attachments, completely backed by Drive.
This means you no longer need to manage Drive and your Intranet as two completely separate document sharing systems!
- Why is the option for Viewer / Download / Embed disabled for some files?
Download isn’t normally enabled for native Google file types.
Embed should be enabled for many non-native file types (e.g. PDF, Word DOC). If not, you may need to increase sharing
settings within Google Drive to ‘anyone with the link may view’, or higher.
If that still doesn’t work, your file type may not be supported. Please get in touch (send your file or share with
us if possible), and we will see if it can be supported – email firstname.lastname@example.org.
To embed Google Drive Folders or image file types, you will require the premium or enterprise version of the plugin. You will be
notified if that is the case for your selected file.
- How does the plugin respect Google Drive sharing settings?
Google Drive Embedder will show different behavior depending on your document’s type and its sharing settings within Google Drive.
Generally, we recommend setting files’ Sharing settings to at least ‘anyone with the link can view’, in order for them to be
visible to all visitors.
This setting is essential for third-party file types such as Word and PDF (otherwise all visitors will see unintelligible content).
You can use lower sharing settings for Google documents (e.g. share only within the organization, or with specific users), but in
that case you will need your users to be logged in to a Google account that is authorized to view the content (otherwise, they
will be told they do not have permission).
When using ‘anyone with the link can view’, you must understand that any visitors to your WordPress site will be able to obtain
that document’s link and potentially open the document outside of your WordPress site.
- I embed a (non-Google) document, but I just see some HTML in the published post
Specifically, you see something starting:
Most likely, you need to increase sharing settings for the file. In your Google Drive, find the file and click
‘Share’. Click ‘Change’, and then on ‘Anyone with the link can view’. Click ‘Done’.
You also need to make sure you have not chosen to ‘Prevent viewers from downloading’. To check this, find the file in
your Google Drive list, and see if ‘Allow viewers to download’ is available from the right-click menu. If so, click it
to turn it off!
If you reload your published page or post in WordPress, it should now display properly, or at least give a message
saying that the document type is unsupported. Please get in touch if not!
- In the Add Google File dialog box, I just get the Google Error “Forbidden”. Even though I promise I followed the instructions, including enabling Drive API!
Google Apps’ user and permissions systems are complex, and there are many ways you could forbid your users from using the Drive API.
You could have disabled API access completely, so take a look in your GA admin panel and look for anything obvious.
One reason a lot have people have seen ‘forbidden’ in the past is because they have the following setting unchecked:
go to Google Apps -> Drive, and then General Settings -> Allow users to install Google Drive apps.
After changing settings, you should logout of WordPress and Google, then refresh and try all over again.
- How is this different to the plugin Google Doc Embedder?
Google Doc Embedder only allows you to embed other files such as PDF, Word etc in your site. It has nothing much to do
with Google, other than the fact it uses an online Google service to render documents.
By contrast, our plugin (Google Drive Embedder) allows you to browse your Google Drive files and easily
embed those directly into your site – both native Google formats and other file types PDF, Word, ZIP etc.
- Why do I also need to install the Google Apps Login plugin?
This Google Drive plugin extends the Google Apps Login plugin, making use of that plugin’s settings rather than
insisting that you register a new whole new application with Google for each plugin separately. For those of your users
who choose to Login via Google to connect to your WordPress site, they only need to authenticate once to be able to browse
their Google Drive through the Google Drive plugin, rather than having to click a second time to allow Drive access.
Because of this, the Google Drive plugin itself requires no configuration at all – it is delegated to Google Apps Login.
For Multisite Network, this means that admins can set up Google Apps Login network-wide, but safely defer the choice of activating
any further plugins (which extend Google Apps Login) to individual site administrators.
- I have installed Google Apps Login plugin but the Google Drive plugin still says I need to install it
Are you sure you have upgraded to the latest version – must be 2.0 or higher?
Have you also configured the plugin? Under Settings -> Google Apps Login, you will need to follow the instructions
to obtain a Client ID and Client Secret from Google Cloud Console, and enter them into that settings page.
- How can I purchase the premium or enterprise version?
You can purchase a license here:
- What are the system requirements?
- PHP 5.2.x or higher with Curl and JSON extensions
- WordPress 3.3 or above
And you will need a Google account to set up the Google Apps Login plugin.
First point to make to all the low starred reviews, all of them are because people think everything should be free, if everything was free it would be a wonderful life, but if you want it to be free, go learn GAS, if you don't know what GAS is, then suggest you complain about something else, as these plugins save you so much time, and that's what your paying for, good value for money. This is the last of the Plugins installed, started with the Google Apps login, and as long as you read the instructions, in sequence its been explained in a very good way and nice and SIMPLE.... try googles own cloud documents if you want challenges 😉 The Drive Embedder does need some instructions updating as to screenshots, but again if you work with google,, you'll realize they update everything too often to keep everything 100% updated 100% of the time, however saying this so long as you have common sense you will work through it, its all there just the screen shots are slightly different now, and support is excellent whenever requested. The only part I got caught out on, was when previewing I got blank screens, however I soon worked out I needed to update the pages in WordPress rather than just preview, and this might be in the instructions, but I was a bad user and just jumped in by playing around with it, as so easy to use with a little common sense. Plugins deserves 5 stars as time and effort have gone into this, so no the enterprise version isn't free, neither is the premium, however it saves so much time and lets you focus on design rather than working with GAS. Intranet up and running with google integration, 3 days ! admin to small teams dream, cheers left work on time three times this week! If you sell sites and a customer wants integration, you cant go wrong with this one it will save you time and stress, unlike some of the other offerings.... well done keep it up please 🙂
I really recommend it. It's a real bridge between your google drive account and your wp website
Some file titles were not being escaped correctly ([ and ] characters) so could cause WordPress to parse the shortcode incorrectly.
Fix to match a change made by Google in the way their API works.
Some users were seeing warning messages about a missing variable – now fixed.
Updated readme to reflect new G Suite naming.
Some internal code refactoring bringing up to date with Premium/Enterprise versions.
Improved error handling when admin inadvertently activates multiple versions of the plugin.
No longer shows trashed files in Add Google File dialog box.
iframe embeds (e.g. videos) now have allowfullscreen as a default attribute so the viewer can click into full screen mode.
Add allowfullscreen=”no” to your shortcode to turn this off.
The jump in version number is to match Enterprise/Premium versions of the plugin.
Ready for WordPress 4.4.
Internal changes for code readability and to prepare for ‘My Drive’ version.
Due to changes in Google’s Drive API some embeds (e.g. PDFs) were not always showing up. This version fixes it.
Workaround for a Google change to iFrame permissions – PDF and other standalone docs now embed better.
Embed as Drive is now the only option for non-native file types (e.g. PDF, Word, Excel). Avoids the old-style Google Document Viewer completely.
Introduced ‘Embed As Drive’ option (now default) for non-native file types (e.g. PDF, Word, Excel).
This uses Drive natively rather than sending the file via the external Google Document Viewer.
It also means non-native file types can be embedded based on permissions of the logged-in Google user – does not required Anyone with the link can view.
Tidied up file structure, and brought documentation in line with the new Enterprise version of Google Drive Embedder.
Provides information about Google forms availability
Instructions for video embed
Clearer error messages
Provides information about premium upgrade to embed certain new filetypes
Layout changes ready for WordPress 3.9 release
Extra support for non-Google file types such as PDF, Word DOC – can now be embedded inline or direct-download links.
Added Search box functionality
Multisite installations now have the choice of Network Activate (so Add Drive File available on all sites), or
individual sub-site activation.
Google Drive document embedder