How to Import Data From Google Sheets in WordPress Table?

Key Takeaways

  • Nexter Blocks includes a Data Table block that allows users to import data from Google Sheets into a WordPress table.
  • Users must generate a Google API Key and set the Google Spreadsheet access to 'Anyone with the link' for the Data Table block to function properly.
  • The Google Sheet ID is required and can be found in the spreadsheet URL, which is necessary for importing data into WordPress.
Table of Contents

Importing data from Google Sheets to a WordPress table can be an easy and efficient way to manage and update large amounts of data on your website. Google Sheets is a popular and powerful cloud-based spreadsheet application that allows multiple users to edit and collaborate on data in real-time. By connecting your Google Sheets to your WordPress site, you can easily import and update data in your WordPress tables.

With the Data Table block from The Nexter Blocks you can easily import data from Google Sheets into a WordPress Table.

To check the complete feature overview documentation of the Nexter Blocks Data Table block, click here.

Requirement  – This block is a part of the Nexter Blocks, make sure its installed & activated to enjoy all its powers.

To do this, first, you have to generate Google API Key.

Generate Google API Key

1. Login to your Google account and go to the Google Developers Console.

2. If you don’t have any project created, then click on CREATE PROJECT link.

google client id 1

3. On the next screen, add your Project name and click the CREATE button.

google api key 2

4. Then click on +ENABLE APIS AND SERVICES at the top.

google api key 3

5. On the next page, search for Google Sheets API in the search bar. Click on Google Sheets API then click on the Enable button.

google api key 4

6. Then click on Credentials in the left sidebar.

7. On the Credentials page, from the top, click on + CREATE CREDENTIALS > API Key.

google api key 5

8. It will generate the API Key, copy and paste the key into a notepad.

google api key 6

In the same Google account that you generated the API key with, you should have a Google Spreadsheet with some data.

Now to import Google Sheets data into the WordPress table with the Data Table block follow the steps –

1. Add the Data Table block on the page, then in the Table tab, select Google Sheet from the Type section.


2. In the API Key field, paste your API Key.

data table google api key new 1

3. Go to your Google Spreadsheet, and click on the Share button. In the popup set the General Access to Anyone with the link and click on Done.

This will allow the Data Table block to access your Spreadsheet.

4. Now you have to find your Google Sheet ID. You can find the spreadsheet id in the spreadsheet URL.

Example URL: https://docs.google.com/spreadsheets/d/12XzuHrBwRQ_peHokt7xSczlZfRqVXCdWRDxLm-3dPjU/edit#gid=0

Then your id should be “12XzuHrBwRQ_peHokt7xSczlZfRqVXCdWRDxLm-3dPjU

google sheet id

Copy and paste your spreadsheet ID in the Sheet ID field of the Data Table block.

5. In the Table Range field, you have to add the cell range of your Google Spreadsheet which you want to show in your WordPress table.

Go to your Spreadsheet and select the range, then click on Data > Named ranges

It will show the cell range copy and paste it into the Table Range field of the Data Table block.

That’s it. Now data from your Google Spreadsheet will show in your WordPress table.

Also, check How to Import Data From CSV in WordPress Table.

About the Author

Photo of Aditya Sharma CMO of NexterWP
CMO at POSIMYTH Innovations · NexterWP · 7 years experience

He has spent years in the WordPress ecosystem building, breaking, and optimizing sites until they actually perform. He works at the intersection of speed, growth, and usability, helping creators ship websites that load fast and convert. An active WordPress community contributor sharing through tools, tutorials, and direct collaboration. Tested practice, not theory.

WordpressThemesElementorn8nAIClaudeAutomationServer

Share your Thoughts

Get Instant Answers to all your questions about Nexter Blocks,
Extensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

What should I do if I can't generate a Google API Key?

If you're having trouble generating a Google API Key, ensure you're logged into your Google account and have created a project in the Google Developers Console. If you haven't created a project, click on the 'CREATE PROJECT' link. After that, make sure to enable the Google Sheets API by searching for it in the APIs and Services section. If issues persist, check your account permissions or try a different browser.

Can I use the Data Table block to display data from multiple Google Sheets?

The Data Table block from Nexter Blocks is designed to import data from a single Google Sheet at a time. If you need to display data from multiple sheets, you would have to create separate Data Table blocks for each sheet. This allows for more organized data presentation on your WordPress site.

What is the best way to set the Table Range for my Google Sheets data?

When setting the Table Range in the Data Table block, it's essential to accurately specify the cell range you want to display. You can find this by selecting the desired range in your Google Spreadsheet and then using the 'Named ranges' feature. This ensures that only the relevant data is shown in your WordPress table, improving clarity and usability.

Are there any limitations when importing data from Google Sheets?

While importing data from Google Sheets using the Data Table block is straightforward, there are limitations to consider. For instance, the block only supports one Google Sheet at a time, and the data range must be correctly defined. Additionally, ensure that your Google API Key is valid and that the Google Sheets API is enabled to avoid access issues.

Last reviewed: April 15, 2026

Related Docs