Our Biggest Sale Is Here
Up to 70% Off
Get the Deal

How to create a table from Google Sheets in wpDataTables

Say your team keeps a contact list in Google Sheets and updates it every week. Instead of copying the data to your site, you can link a wpDataTables table to the sheet, so the table on your page shows the sheet’s latest data. You publish the sheet to the web once, then give its link to Tabella AI or to a new linked table.

How do I prepare a Google sheet for wpDataTables?

Publish the sheet to the web and copy the link Google gives you. A published link works without a Google API connection.

  1. Open the sheet. In Google Sheets, open the spreadsheet or create one. Put the column names in the first row.
  2. Publish it. Click File → Share → Publish to web. On the Link tab, keep Entire document and Web page, click Publish and confirm with OK.
  3. Keep it up to date. Open Published content & settings and make sure Automatically republish when changes are made is checked, so your edits reach the table.
  4. Copy the link. Copy the link that appears in the dialog. It contains 2PACX, for example https://docs.google.com/spreadsheets/d/e/2PACX-…/pubhtml.
The Google Sheets Publish to the web dialog with Entire document selected, the published 2PACX link and Automatically republish when changes are made checked
Publishing a Google sheet, shown as overlapping panels: (1) Entire document, (2) the published link with 2PACX (rest blurred), (3) Automatically republish when changes are made.

You can also use the link from the browser’s address bar, but only after you connect the Google Sheets API and set the sheet’s sharing to Anyone with the link can view. The API connection also removes the Google-side delay described below and lets you use private sheets.

How do I create a table from Google Sheets with Tabella AI?

Paste the published link in the Tabella AI chat, check the preview, and create a linked or an imported table.

  1. Open Tabella AI. Go to wpDataTables → Dashboard and click + Use a file or link.
  2. Paste the link. In the Add data panel, paste the published link in Public data URL and click Preview this source.
  3. Create the table. Check the sample of up to 20 rows, then click Create linked table to keep reading the sheet, or Import to database to create an editable copy that does not follow the sheet.
  4. Add it to a page. Click Copy shortcode and paste it into a Shortcode block.

The review card is the same as for CSV files; see how to create a table from a CSV file for a screenshot.

Video: creating a linked table from a published Google sheet with Tabella AI.

How do I create a table from Google Sheets by hand?

Create a table linked to an existing data source, choose Google Spreadsheet as the source type, paste the link and click Save Changes.

  1. Start a linked table. Go to wpDataTables → Create a Table and click Create a data table linked to an existing data source.
  2. Name the table. Click New wpDataTable and type a name, for example Contacts.
  3. Choose the source type. In the Data source tab, open Input data source type and choose Google Spreadsheet.
  4. Paste the link. Paste the published link in Input file path or URL.
  5. Save the table. Click Save Changes. wpDataTables reads the sheet, creates the columns and guesses their types.
The Contacts table linked to a Google sheet with Google Spreadsheet as the input data source type and a Google Sheets link
Linking a table to Google Sheets: (1) Input data source type, (2) Input file path or URL with the sheet link, (3) Save Changes.

How does the table follow changes in the sheet?

A linked table reads the sheet again every time the page loads, so new and edited rows show without any work in WordPress. Keep these limits in mind:

  • Google caches published sheets, so a change can take up to 15 minutes to show in the table. With the Google Sheets API connected, there is no delay.
  • Don’t rename, reorder, add or delete columns in the sheet. The table stops working, and you have to create it again.
  • Merged cells are not supported, and formatting such as colours and fonts is not copied.
  • Formulas need a copy sheet. See how to show Google Sheets with formulas.
  • You can’t edit the rows of a linked table in WordPress, and the data is not saved in the database.
  • Large sheets, above about 2,000 to 3,000 cells, load slowly. Turn on caching for them.

If wpDataTables shows an SSL certificate error when it reads the link, your server can’t verify Google’s certificate. Ask your host to update the server’s CA certificates.

How do I set up the Google Sheets table after it is created?

Open the table in the editor and check the column types first, then add filters, sorting and a design. For example, click the column settings icon of the City column, open the Filtering tab and set Filter type to Selectbox, so visitors can pick a city.

A table linked to Google Sheets in the wpDataTables editor with the column headers and the Filtering tab of the City column with filter type Selectbox
A Google Sheets table in the editor, shown as overlapping panels: (1) the column settings icon of City, (2) the Filtering tab, (3) Filter type.

What should I remember about tables from Google Sheets?

Publish the sheet with File → Share → Publish to web, copy the 2PACX link, and paste it in Tabella AI or in a new table with Google Spreadsheet as the source type. The linked table follows the sheet with up to 15 minutes of delay, unless you connect the Google Sheets API. Keep the columns unchanged, avoid merged cells, and use a copy sheet for formulas.

Wait, Before You Download!

To get your hands on wpDataTables Lite, please enter your email address below. We’ll send you a direct download link and keep you updated on existing features along with helpful tips and tricks!

By continuing, I accept Privacy Policy and T&C
Mail Box