Google Drive and WordPress: embed, share and use Drive files
You can show Google Drive files on a WordPress page without a plugin: Docs, Sheets and Slides have a Publish to web embed code, and other Drive files have an Embed item code. For file libraries, use a Drive plugin. To bring Drive files into your pages as you build, use an AI agent.
Embed the file, or make it part of the page
Embedding shows the live Drive file in a frame on your page. Edits in Drive appear on the site, but the file has to be shared publicly, and its text stays in Drive rather than on your page.
Uploading the file to your media library, or rebuilding its content as blocks, makes it part of the page. That's what an agent does when you ask it to pull a logo, images or copy from Drive.
WPOS is our product. Everything below was checked on 6 November 2026 against Google's help center and the WordPress.org plugin directory.
Three ways compared
From one embedded file to building with Drive. Checked on 6 November 2026.
| Way | Best for | What it takes | Watch out for |
|---|---|---|---|
| Google’s embed codes | Showing a Doc, Sheet, Slides deck, PDF or video on a page | Publish to web (Docs, Sheets, Slides) or Embed item (other files), then a Custom HTML block | The file must be published, or shared with anyone who has the link |
| A Drive plugin | File lists, galleries and uploads to Drive | DriveHub, or Embed Files from Google Drive | Check that it’s maintained: on 6 November 2026, Embed Files from Google Drive was last updated in May 2025 |
| AI agent (WPOS) | Pulling logos, images and copy from Drive into pages as you build | WPOS’s Google Drive connector | Paid after the 30-day free trial. It needs Edit access to folders it should write to |
How to do each one
1. Embed a Google Doc, Sheet or Slides deck
- Open the file and choose File → Share → Publish to web.
- Open the Embed tab, choose what to publish (for a Sheet, the whole spreadsheet or one sheet) and click Publish.
- Copy the HTML and paste it into a Custom HTML block. In Elementor, use the HTML widget; in Divi, the Code module.
- Published files update automatically when you edit them. To stop that, open Published content & settings and untick Automatically republish when changes are made (not available for Slides).
Publishing makes the file visible to anyone who has the link or sees the page, so don’t publish documents with private data.
2. Embed a PDF, image or video from Drive
- In Drive, set the file’s sharing to Anyone with the link, as a viewer.
- Open the file, click More actions (⋮) and choose Open in new window.
- In the new window, click More actions (⋮), choose Embed item and copy the code. It’s an iframe that points to
drive.google.com/file/d/…/preview. - Paste it into a Custom HTML block, and set the width to 100% so it fits on phones.
3. Use a Google Drive plugin
Plugins connect your Drive account so you can browse and embed files from the editor, or show folders as file lists and galleries. On 6 November 2026, Embed Files from Google Drive had 4,000+ active installs but no update since May 2025 (tested up to WordPress 6.8), and DriveHub had 100+ installs and an update that week. Check a plugin’s last update and the WordPress version it supports before you install it.
4. Let an AI agent work with your Drive files
-
01
Connect Google Drive
In WPOS, open Connectors and connect Google Drive with your Google account. WPOS needs Edit access to any folder it should write to.
-
02
Ask in plain language
For example, “Pull the logo from Google Drive and add it to the header.”
-
03
Build with the files
The agent uses the files in the build and creates native blocks in the site's own builder, so the page doesn't depend on Drive sharing.
-
04
Leave notes where your team works
For example, “Comment on this Drive file with the launch notes.”
Google Drive and WordPress, answered.
Straight answers on embedding, sharing and using Drive files on a WordPress site.
Share the PDF with Anyone with the link, open it in Drive, choose More actions, Open in new window, then More actions, Embed item. Copy the iframe code into a Custom HTML block.
The file isn't shared publicly. Set its sharing to Anyone with the link as a viewer, or use Publish to web for Docs, Sheets and Slides.
Yes, by default. Published files republish when you edit them. You can turn that off under Published content and settings, except for Slides.
Some plugins show Drive files inside WordPress, but files are safer in your own media library: they load from your site, they're in your backups, and they don't break if someone changes the sharing in Drive.
Yes, that's a separate job. Backup plugins such as UpdraftPlus, which has more than 4 million active installs, can send backups to Google Drive.
Yes. Google's Publish to web and Embed item codes are free and work with any theme or builder. Most Drive plugins have free versions, and WPOS is free for the first 30 days.
Go deeper:
- Google Drive setup guide↗ Connect Google Drive to WPOS and choose which folders it can use.
- Google Workspace and WordPress Drive, Sheets, Docs and Calendar with WPOS.
- Notion to WordPress Publish, sync or migrate Notion pages.
- All integrations Every tool WPOS connects to, and what each one does on your site.
Start free with 15,000 credits.
Three times the usual 5,000, no card needed. Then 50% off your site licences for 2 months with FRIDAY50.
Build with your Drive files, not around them.
30 days free with 5,000 credits and no card. Or book a free 30-minute demo with the founders and bring one of your sites.