Adding a table to a WordPress Page or Post
We are assuming some knowledge of how to open WordPress posts and pages, gained either from the reader’s own experience of from our more basic First Steps page.
Tables in WordPress
Tables are a fairly new core feature WordPress. Until recently, tables could only be created with the help of plugins, the best being the widely used TablePress.
Then along came Gutenberg, the new WordPress editing tool that is based on “blocks” instead of the previous single text-based editing area. Each paragraph became a separate block.
Not only that, the blocks have diversified into a multitude of different functions that keep being added to with each new update of the WordPress core system.
One of these blocks allows users to adds a table to their page or post. Let’s see how it works.
Adding a new table
Start by choosing a new block. On your page editing screen, Click on the button at the top left of your screen, coloured blue in this example:
When the options screen opens, choose Table by clicking on its icon:
Choose how many columns and rows you want. You can edit this later if you need to.
Editing and adding options to the table
Start adding content to your table. You can a caption underneath if you want. You can also add or remove columns or rows, change the look to stripes and give it a background colour. There are options to add a header or footer to the table.
Here are two versions of the same table, plain and with stripes and a coloured background:
Category: WordPress Help
← Previous post: Manipulating images in WordPress
→ Next post: Making files available for download