• Blog
  • How to Add Tables in WordPress Posts and Pages

How to Add Tables in WordPress Posts and Pages

Are you wondering how to add tables to WordPress? Did you know you can add tables in WordPress posts and pages without the use of HTML!

This guide will show you how to add tables to WordPress posts and pages without needing a plugin or any coding knowledge. We’ll also run through how to make your tables more advanced, with features like search and sort.

Table of Contents

1. How to Create Tables in WordPress Block Editor

Using WordPress’s default block editor, it’s super simple to create tables in posts or pages. After creating a post or page, simply click the + symbol to add a new block.

Find the Table block or use the search bar to type in Table.

Once you’ve selected Table from the Block Editor, you’ll need to choose how many columns and rows you want your table to be.

If you’re not 100% sure on how many you need, don’t worry, you can always add additional columns and rows at any point.

We’ve created a table with 4 columns and 6 rows.

You can type directly into the table cells which will automatically resize once your content is in there. If you want to set your cells to be fixed width, you can set the option in the ‘Block’ settings which is located on the right-hand side.

You can add table headers or footers, different colors, and other styles to customize your table. If you want to add a column or row to your existing table, select the ‘Edit Table’ button once you’ve clicked in a cell.

There are actually lots of customization options within the Block Editor in WordPress. You can add a table in WordPress with different widths, you can align the table to suit your post or page, and you can easily add CSS styling if you’re more advanced.

Tables are useful for displaying lots of data in a readable and user-friendly way. However, there are some features that the Block Editor lacks when adding tables to WordPress.

For example, there’s no option to filter, search, or add custom sorting.

Another disadvantage is that you can’t use the same table or format across multiple posts or pages easily. If you want to create more advanced tables, you’ll need a WordPress table plugin.

2. Creating Tables in WordPress Using TablePress Plugin

TablePressis hands down the best WordPress tables plugin. One of the huge advantages of TablePress is that it’s free and easy to use.

You can edit your tables separately, use the same table or table format across posts and pages, and add advanced features like search and filter.

If you are using the classic WordPress editor, TablePress is a necessary requirement as the classic editor doesn’t offer any table functionality.

You’ll first need to install TablePress and activate it.

Once TablePress is activated, a TablePress menu will appear on the left-hand side of your WordPress dashboard. Select TablePress > Add New to create a new table.

Type in the Table Name so you can identify the table later on, as well as a description if you want to (this is optional).

Select the number of rows and columns for your table – you can add more rows or columns later on.

We’ve created a table with 9 rows and 3 columns. Once you’re ready to create your table, click ‘Add Table’ to proceed.

You’ll now be taken to a new screen with your table’s content. Here you can add or remove content from your chosen table.

Type the data you want in your cells. You can sort your columns using the arrows above them, allowing you to sort in alphabetical or numerical order.

In the table content area, you’ll see lots of options including Table Manipulation, Table Options, and Features of the DataTables JavaScript Library.

Under Table Manipulation, you can add, remove, and duplicate rows. It’s really easy to add new columns or rows, simply by altering the number in the text boxes next to ‘Add’.

Table Options allows you to select rows as headers or footers. If you choose this option, your header or footer row won’t be sorted with the data. This is useful if you want to create different headers in your WordPress tables like “Reviews”.

Lastly, you can set options in the ‘Features of the DataTables JavaScript Library’. You can create responsive tables allowing users to filter, search, and sort. This is especially useful if you’re creating large tables.

Once you’ve finished creating your table, select ‘Save Changes’. 

You can easily add your table to posts or pages in WordPress by adding the shortcode to a paragraph block or by using the shortcode block.

You’ll need to enter the table ID for your table to show.

If you’re using the WordPress Classic Editor, you can add the shortcode directly into your post.

To make changes to your table created using TablePress later on, just navigate to the TablePress section in your WordPress dashboard and select ‘Edit Table’. 

Once you’ve saved the changes to your table, it will automatically be updated in your post or page where you’ve added the table.

Using TablePress you can also import data from spreadsheets. In reverse, you can export TablePress data into a CSV file.

Adding Tables to WordPress Conclusion

I hope you’ve found this article useful in teaching you how to add tables in WordPress posts and pages. 

It’s really easy to add tables without using HTML, making it an ideal choice for beginners. 

Remember, if you’re using the WordPress Classic Editor, you’ll need to install a WordPress table plugin. We always recommend TablePress because it’s simple and 100% free.



Top Hosts by Category

Top Recommended Web Hosts


For the latest authentic research and news on the best hosts for your website!

Next Post

Related Posts: