ThisCalculator

Everyday

How to Add Tables in WordPress Posts

Updated · Standard formula, shown below

Average pace 5.00 min/km
Average speed
12.00 km/h
Result
Finish time
50 min
You entered
Distance
10 km
You entered

How to Add Tables in WordPress Posts

Adding a table to a WordPress post is straightforward: you can use the built-in Table block in the block editor (Gutenberg), or install a dedicated table plugin if you need advanced features like sorting or filtering. This article explains both methods, how to choose between them, and how to avoid common formatting issues.

Why Use Tables in WordPress?

Tables are the clearest way to present structured data: comparison charts, pricing lists, schedules, specifications, or any set of values that share the same columns. Without a table, you end up with long paragraphs or bullet lists that are harder to scan. A well-formatted table lets readers compare numbers or attributes at a glance, which improves usability and keeps your content organized.

WordPress has supported tables natively since version 5.0, when the block editor (Gutenberg) was introduced. The Table block allows you to create a simple grid without any coding knowledge. For more complex tables—sortable columns, searchable rows, or tables built from a spreadsheet—you may need a plugin.

Method 1: Using the Built-in Table Block

The default Table block is the simplest way to add a table to a post or page. Here’s how to do it:

  1. Open the post or page in the WordPress block editor.
  2. Click the + (add block) button, search for “Table,� and select the Table block.
  3. Choose the number of rows and columns you need (you can add or remove later).
  4. Click Create.
  5. Click inside each cell to type your content.
  6. Use the toolbar that appears above the table to adjust alignment, add or delete rows/columns, or change the header row.

The block editor automatically adds a header row (the first row) if you choose that option. You can also toggle the header row on/off from the block settings in the right sidebar. The table is fully responsive—it will scroll horizontally on small screens if the content is too wide.

Method 2: Using a Table Plugin

If you need features beyond a basic grid, a plugin is the way to go. Popular options include TablePress, WP Table Builder, and Ninja Tables. These plugins allow you to:

  • Create tables from CSV or Excel files.
  • Add sorting, pagination, and search functionality.
  • Style tables with custom colors, borders, and fonts.
  • Insert the same table in multiple posts without duplicating content.

To use a plugin, install and activate it from the WordPress admin (Plugins → Add New). Then follow the plugin’s own interface to create a table and embed it via a shortcode or a block. For example, TablePress generates a shortcode like [table id=1 /] that you paste into any post or page.

Choosing Between Block and Plugin

Your choice depends on your needs:

  • Simple static data (e.g., a list of product specs) → use the built-in Table block.
  • Large tables (more than 20 rows) → a plugin makes editing easier and offers pagination.
  • Sortable or searchable tables → plugin required; the block does not support these features.
  • Tables that appear on multiple pages → plugin (you can reuse the same table ID).
  • Minimal plugin usage → stick with the block to keep your site fast and secure.

For most users, the built-in block is sufficient. Plugins add extra code and potential security risks, so only install one if you genuinely need the extra functionality.

Common Problems and How to Fix Them

Here are typical issues when working with tables in WordPress:

  • Table is not responsive – The block handles this automatically, but if you’re using a plugin, check its settings for a responsive mode. You can also add custom CSS to make the table scroll horizontally on small screens.
  • Table looks different on mobile – Sometimes the theme’s CSS overrides the table styles. Use the browser’s developer tools to inspect and adjust the CSS, or use a plugin that includes mobile-friendly styling.
  • Can’t add a table in the classic editor – If you’re still using the classic editor, you can either switch to the block editor or use a plugin that works with the classic editor (e.g., TablePress via shortcode).
  • Table is not saving – This is usually a browser cache or plugin conflict issue. Clear your browser cache, disable other plugins temporarily, and try again.

Styling and Accessibility Tips

A well-styled table improves readability. Use the block’s alignment options to center the table or make it full-width. In the block settings, you can also set a fixed width for the table. For accessibility, always include a header row—screen readers rely on it to understand the table structure. Avoid using tables for layout purposes; they are meant for data, not for positioning images or text.

If you want to customize the look further, you can add custom CSS in the WordPress Customizer (Appearance → Customize → Additional CSS). For example, to add zebra striping (alternating row colors), you could write:

table tr:nth-child(even) { background-color: #f2f2f2; }

Frequently Asked Questions

Can I add a table in WordPress without a plugin?

Yes, the built-in Table block in the block editor lets you create a simple table without any plugin. It’s perfect for static data. For advanced features like sorting or importing from Excel, you’ll need a plugin.

How do I make a table sortable in WordPress?

The built-in block does not support sorting. You need a plugin like TablePress or Ninja Tables that includes sorting functionality. After creating the table in the plugin, enable sorting in the table’s settings and embed it via shortcode.

Why is my table not showing on mobile?

This usually happens when the table is wider than the screen. The block editor’s table is responsive by default, but if you’re using a plugin, check its responsive settings. You can also add custom CSS to make the table horizontally scrollable: table { display: block; overflow-x: auto; }

Can I import a table from Excel into WordPress?

Yes, with a plugin like TablePress, you can import a CSV or Excel file directly. The plugin will create a table from the file, which you can then embed in any post or page.

How do I delete a table in WordPress?

If you used the Table block, simply select the table and press the delete key, or click the three-dot menu and choose “Remove Table.� For plugin tables, delete the shortcode from the post, and then delete the table from the plugin’s admin page.

Related

Formula used
in t | Finish time | min | 50 | 0
in d | Distance | km | 10 | 0
out pace | Average pace | min/km | t / d | 2
out speed | Average speed | km/h | d / (t / 60) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.