Skip to content
Black Friday 50% off + 15,000 credits Ends Nov 30 Ends Nov 30 see the deal
Black Friday15,000 free credits + 50% offends Nov 30

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.

The short answer

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.

WayBest forWhat it takesWatch out for
Google’s embed codesShowing a Doc, Sheet, Slides deck, PDF or video on a pagePublish to web (Docs, Sheets, Slides) or Embed item (other files), then a Custom HTML blockThe file must be published, or shared with anyone who has the link
A Drive pluginFile lists, galleries and uploads to DriveDriveHub, or Embed Files from Google DriveCheck 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 buildWPOS’s Google Drive connectorPaid 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

  1. Open the file and choose File → Share → Publish to web.
  2. Open the Embed tab, choose what to publish (for a Sheet, the whole spreadsheet or one sheet) and click Publish.
  3. Copy the HTML and paste it into a Custom HTML block. In Elementor, use the HTML widget; in Divi, the Code module.
  4. 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

  1. In Drive, set the file’s sharing to Anyone with the link, as a viewer.
  2. Open the file, click More actions (⋮) and choose Open in new window.
  3. 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.
  4. 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.

With WPOS

4. Let an AI agent work with your Drive files

  1. 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.

  2. 02

    Ask in plain language

    For example, “Pull the logo from Google Drive and add it to the header.”

  3. 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.

  4. 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.

Read the Google Drive setup guide

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.

Black Fridayends Nov 30

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.