To insert a Drive file/folder (or Google Calendar) in a WordPress post, in the post editor click the ‘Add Google File’ button above the main text area. This will open a dialog box where you can search for the Drive file/folder you want.
Click the checkbox to the left of your file/folder to highlight it, and then pick one of the options presented beneath it, before clicking ‘Insert File’ to add it to the post.
(In the free version, there will be no checkbox next to the file name – just click its title. In Premium/Enterprise versions, check the checkbox to select the file for insertion; click on the filename to preview a file, or to dive into a folder.)
Viewer file link
This option inserts a simple link to open the file in Drive. There is a checkbox option to display an icon to the left of the link in your post, and another option to open the file in a new tab instead of replacing the current tab.
Download file link
This will appear very similar in your post to a ‘viewer file link’ (and the option to add an icon is also present), but the file will download direct to the user’s computer instead of opening to view within the Google Drive website. This makes sense for non-Google file types (such as PDFs), but since Google docs such as Sheets cannot be downloaded directly, you will need to select an export file type for those documents. For example, Sheets can be downloaded as Excel XLS, and Google Documents can be downloaded as DOCX or PDF. (Export of Google docs is only available in the premium or enterprise version of the plugin.)
To embed a document directly in your post to be viewed inline, use the Embed document option.
You will be able to enter a width and height (in pixels, or use ‘100%’ to match the parent container width).
If the file does not seem to have the Embed Document option available, you may need to increase sharing settings within Google Drive to ‘anyone with the link may view’, or higher.
To embed Google Drive Folders you will require the premium or enterprise version of the plugin. You will be notified if that is the case for your selected folder. There are many extra options when embedding folders in the relevant plugin versions – see more here.
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.
You can use lower sharing settings (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.
The Premium and Enterprise versions have advanced functionality for locating the files you need. In addition to being able to search through the search box, your files/folders are organized by tabs across the top. These include My Drive, Team Drives, Recent, and Starred. These tabs are similar to the tabs on the left-hand side in the Drive website itself. To browse My Drive for example, click the name of a folder to explore the files inside that folder. Click on a file’s name to see a preview. To embed a file or a folder, select the checkbox to the left of its name, choose the options that you want from the area below the file browser, and then click Insert File.