If you want to add tables to WordPress posts or pages, you may use plugin or HTML code. But after reading this article you will be able to add any tables without using a plugin or any HTML code.
Tables are necessary for many posts to display data in an understandable format, however many users don’t know how to create it. So let’s see the easiest method to add tables.
How to add tables to WordPress posts without plugins?
Creating Tables in the WordPress Block Editor:
- Create a new post or page, or edit an existing one.
- From the content editor, click on the (+) symbol to add a new block.
- Then select ‘Table’.
- You can find it under the ‘Formatting’ section, or you can type ‘Table’ into the ‘Search for a block’ bar.
- Next, you’ll be prompted to choose how many columns and rows you want for your table. Both figures default to 2.
- you can always add/remove table columns and rows later.
Here we’ve created a table with 3 columns and 4 rows:
You can type in the table cells, and they’ll automatically resize depending on how much content is in each. If you’d prefer your cells to be fixed-width, then you can set this option on the right-hand side.
You can also add a table header or footer section here. In our example, we have added a header for our table, and we have also set the background color to gray under the ‘Color Settings’ tab.
If you want to add a new row or column, just click on a cell at the point in the table where you want to add it. Next, click the ‘Edit Table’ button.
Here, we’re adding a new column on the right-hand side of our table:
you can also delete rows and columns in the same way. Just click on a cell in the row or column you want to remove, and select ‘Delete Row’ or ‘Delete Column’ from the ‘Edit Table’ menu.
By default, the text in your table’s columns is aligned to the left. You can change this by clicking in a column and then clicking the ‘Change Column Alignment’ button:
Here, we’ve applied center alignment to the three columns that have numbers:
You can also change the alignment of your whole table within the post or page by clicking the ‘Change alignment’ button and selecting an option from the list.
Note that these options can make your table display beyond the normal boundaries of your post area. Some may look odd on your site, so please make sure to preview your post or page to check how they appear.
Here’s our table set to ‘Wide Width’ as it appears on the site:
As you can see, it stretches out beyond the left and right margins of the post area.
The table tools built into the Gutenberg editor give you a lot of flexibility about how you display your tables.
You can use it to show your data to readers in an easy to understand format. However, the table block doesn’t have certain advanced features like search filtering, custom sorting, etc.
It also doesn’t let you easily use the same table across multiple areas of your website such as sidebar widgets or other pages.
this is an easy way to add tables to WordPress Posts without plugins but to create advanced tables, you need to use a WordPress table plugin.