There’s no table button?
As you scour the WordPress editor, you’ll quickly realize there’s no option for adding a table. And it’s not just your site – no WordPress site has a table button.
So how can you insert a table in a post or page?
There are two excellent plugins that can help.
The first plugin lets you create a table with a special editor. That means you won’t even need to look at any code. The second plugin is better for tables that need visual appeal and variety.
There is a third method that doesn’t involve any plugins as well, and I’ll cover that last in the tutorial. For now, let’s get started with plugin number one.
1. Create a table with TablePress
TablePress is the plugin for creating and displaying tables with WordPress.
As you can see, it’s a favorite among WordPress users.
Why use TablePress?
The main draw of TablePress is that it gives you a nice interface for creating and modifying tables without touching any code.
Also, it has more functionality than I can cover here. Check out the extensions page for all the cool features you can add to the base plugin.
One last benefit to using TablePress is that your tables aren’t tied down to a single post or page. Since you create tables independent of any post/page, you can reuse them anywhere on your site.
How to use TablePress
After activating TablePress, you’ll find a new top-level menu added to your admin dashboard.
Clicking the Add New button will take you to this page where you can setup your table’s name and size (don’t worry, you can always update rows/columns later).
Creating the table gives you access to the full table editor where you’ll enter your data.
You can rearrange rows and columns, add links, combine cells – there’s a ton of practical functionality built into the editor.
When you’re ready to display the table, copy the shortcode from the table page and paste it into the editor using the Shortcode block.
While you’ll see a shortcode in the editor, a full table is displayed when you view the post.
Here’s how the table looks displayed on the front-end.
Never used shortcodes? Get familiar with them in this tutorial.
There are a few common issues and questions with TablePress.
Will the shortcode affect my site’s SEO?
No. Using a shortcode won’t have any effect on Google’s ability to read the table on the page.
While you see a shortcode in the editor, regular crawlable HTML is output on the site. It’s no different than writing out the HTML yourself.
Is it responsive / mobile-friendly?
The tables that TablePress creates are not responsive by default. However, there is an extension that will make them more mobile friendly.
Will I lose my tables if I stop using this plugin?
Yes, and no.
The table data is stored in your database, so you won’t technically lose it by uninstalling the plugin. However, you won’t have access to that data in your admin dashboard anymore, so creating tables with it might be challenging.
Backup up your site!
Okay, this is not a question, but a reminder to backup up your site! Some WP users around the web have lamented spending hours on their tables just to end up losing them.
Always make sure to backup your site regularly, so you don’t lose your hard work. You can follow our tutorial on how to backup your site if you need help. There are lots of great free and premium backup plugins to choose from.
2. Create a table with WP Table Builder
If you want to create more visually beautiful tables, try out WP Table Builder.
While TablePress is great for structuring and presenting data, the tables aren’t all that attractive. WP Table Builder is excellent for creating product comparison tables, employee schedules, and even restaurant menus.
With a simple drag-and-drop interface, WP Table Builder is a joy to use.
How to use WP Table Builder
WP Table Builder can be installed like any other plugin. Once installed, you’ll find a new Table Builder menu added to your dashboard.
Clicking the “Add New” button reveals the drag-and-drop interface where you can construct your table.
There are currently five different content types that you can see available in the top-left of the above image.
After choosing how many columns and rows you want (can be edited later), you can simply drag-and-drop any of those elements into any cell in the table.
After less than a minute of fiddling around with this plugin, I was able to put together the beginnings of a product comparison table.
It’s easy to see how you could quickly create any kind of table using this plugin.
As for adding the table into your post, it’s easily done with a shortcode. Clicking the “Embed” button at the top of the interface reveals this popup with the table’s shortcode.
Then all you need to do is copy and paste it into a Shortcode block to include it in any post or page.
Can you create a table without a plugin?
WordPress does have a Table block which lets you quickly create a table with a custom number of columns and rows, but your data then stays in one place, it’s not reusable, and it’s not going to be attractively styled.
TablePress is an excellent choice for anyone looking to make larger, reusable tables that they can import or export from their site, and WP Table Builder is a great alternative for more visual content.
If you’re looking for more selection between plugins, take a look at our list of the best table plugins for WordPress.
Is there anything else you need to add tables to your site? Is something missing in this tutorial? Leave a comment below.