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

How to add wpDataTables tables and charts in the block editor

wpDataTables adds two blocks to the WordPress block editor (Gutenberg): wpDataTables for tables and wpDataCharts for charts. You insert the block, pick the table or chart in the block settings, and the block saves the matching shortcode in the page. You don’t have to copy shortcodes by hand.

What do I need before I add a table in the block editor?

You need WordPress 5.0 or later with the block editor, and at least one table or chart.

Create the table or chart first. The quickest way is to ask Tabella AI on the wpDataTables Dashboard, for example “Create a Simple table with five coffee drinks, their size in ml and price in euros.” You can also click Create a table and use the Create a Table wizard, or build a chart with the chart wizard.

How do I insert a table with the wpDataTables block?

Add the block where you want the table, then choose the table in the settings sidebar:

  1. Open the page. Edit an existing page or post, or create a new one.
  2. Add the block. Click the + (Block Inserter) icon, type wpDataTables and click the wpDataTables block.
  3. Choose the table. With the block selected, open the Block tab of the settings on the right and choose your table in SELECT WPDATATABLE:.
  4. Change the options (optional). Choose the view in CHOOSE TABLE VIEW:, fill in the SET PLACEHOLDER %VAR1%: to %VAR9%: fields or type a name in SET NAME FOR EXPORT FILE:. The block shows the shortcode, for example [wpdatatable id=224 table_view=regular].
  5. Save the page. Click Save draft or Publish, then open the page to see the table.
The block editor with the wpDataTables and wpDataCharts blocks in the block inserter, a wpDataTables block with the shortcode on the page, and the block settings with SET PLACEHOLDER %VAR7% to %VAR9% and SET NAME FOR EXPORT FILE
The wpDataTables block: (1) the block in the inserter, (2) the block on the page, (3) the placeholder fields, (4) the export file name.

Which settings does the wpDataTables block have?

Setting What it does
SELECT WPDATATABLE: Chooses which table the block shows.
CHOOSE TABLE VIEW: Regular wpDataTable or Excel-like wpDataTable. Read about regular and Excel-like tables.
SET PLACEHOLDER %VAR1%: to SET PLACEHOLDER %VAR9%: Pass values to the table’s placeholders, for example to show only one region. Read about placeholders.
SET NAME FOR EXPORT FILE: Sets the name of the file that visitors get when they export the table. Read about table tools.

How do I insert a chart with the wpDataCharts block?

Click the + icon, type wpDataCharts and click the wpDataCharts block. Choose your chart in the block settings on the right, then publish or update the page.

What should I remember about the block editor?

Create the table or chart first, then add the wpDataTables or wpDataCharts block. Choose the table or chart in the settings sidebar, and set the view, placeholders and export file name if you need them. The block saves a normal wpDataTables shortcode, so the table keeps all its settings.

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