Did you ever want to use a table inside a WordPress post and you didn’t have a clue on how to do it? Did you ever want to structure your content or even align the images in a post and you ended up wasting your precious time searching for a table button in vain? If that sounds familiar, then this article is for you. What you are about to learn is how to use tables in WordPress efficiently, without being a professional programmer. Enjoy your reading.
Tables in WordPress; what is the fuzz about?
The problem with using tables in WordPress is that WordPress doesn’t include a button for this purpose. This is something, more or less annoying, as they have implemented smart buttons for each and every function you could imagine except for tables. To see a thorough guide on how to use the default WordPress editor you can click here: https://siliconthemes.com/use-wordpress-text-editor-install-new-editors/
OK, I digress. Let’s return to the absence of a table button in the default text editor. This absence is an obstacle you have to overcome if you want to use any tables in your content. So, how you do this? Unfortunately, there aren’t many options for you, but those provided will definitely satisfy all your needs. Let’s examine them. They are:
- The manual table insertion using HTML code.
- Using a plugin to create your tables.
Now you know what your options are, let’s inspect each one of them more thoroughly.
Option No1: Use HTML code to create a table
Step 1: Log in to your WordPress Dashboard.
Step 2: Create a new page or post, or create a new one.
Step 3: You now have to switch to the Text Input mode in the WordPress editor. See the following picture to see how you can do this easily. Entering the Text mode will allow you to input the necessary HTML code to create your table.
Step 4: It’s now time to create your table. Let’s suppose for simplicity’s sake that you want to create a 2×3 table. This means that your table will consist of 2 rows (lines) and 3 columns. To begin creating a table you have to type the <table> and </table> tags. What these two tags do is that they notify the editor that a table follows. Everything else that your table will contain will have to be typed between these two tags.
Step 5: Let’s create your first row. Type the <tr> and </tr> tags which are responsible for the opening and closing a row in your table, respectively. Tr stands for table row.
Step 6: It’s now time to continue with the populating of the rows of your table. This means that you will create the columns that will have the necessary data on them. To do this, you will have to use the <td> and </td> tags. Td stands for table data. Let’s suppose now that you want to create a row consisting of the following data: Name, Age, and City. You only have to create three columns, each one containing the data mentioned above. To do this, just type:
The above tags should exist between the <tr> and </tr> tags you’ve created in the previous step. Your code should look like this now:
That’s it. Your first row is complete. You only have to repeat this step to create another row or even more rows. Let’s suppose your second row has the following data: Jack, 30, and London. Your code will have to be as follows:
If you now return to the Visual mode in your editor, you will see the following table:
Cool, isn’t it? Your first table in WordPress is ready. It wasn’t that difficult, was it?
Option No2: Use a plugin to create your tables in WordPress.
If you aren’t a code savvy, or if it just seems a tiring and time-consuming process, you might want to use a plugin to create your tables in WordPress. There is a good choice of options when it comes to plugins for tables in WordPress, free and paid ones. They all offer similar features. They only differ in the price, ease of use, and perhaps responsiveness. I cannot stress enough the need for your tables to be 100% responsive and compatible with any device. You don’t want your tables to look ugly to your visitors’ eyes, do you? “Of course, not” you will reply.
So, without any further ado, let us present our favorite WordPress plugin you can use to create awesome tables. It’s the “TablePress plugin for WordPress”. Rarely such a beautiful and useful plugin is created. The over 400000 active installs and its 5-star rating speak for themselves. Let’s use TablePress to create your first table:
Step 1: Log in to your WordPress dashboard.
Step 2: Locate the Plugins option in your navigation menu, and click on Add New.
Step 3: Type “Tablepress” in the search box.
Step 4: Once you locate the plugin, click Install and activate it.
Step 5: Once the plugin installation is complete, you can create your first table. Click TablePress — > Add New Table in your navigation menu.
Step 6: Click on the Add New tab at the top of the screen. On the page that opens, fill in the name of your new table, its description (optional) and the number of rows and columns you want it to have. The following image shows an example:
Step 7: Click the “Add Table” button at the bottom of your screen. On the page that follows, type the data that your table will contain and click “Save Changes”. If you decide to add a row or column, just locate the table Manipulation section and click Add a row or Add a column. You can even delete or duplicate an existing row or column. Feel free to experiment.
Step 8: After you’ve clicked the Save Changes button, copy the shortcode that is generated at the top of your screen and paste it wherever you want your table to appear in your content. That’s it. You’ve finished creating your awesome table. You are now ready to create as many as you want.
This concludes our guide on how to create a table in WordPress. You now know everything you need to create your beautiful tables to present your content in an attractive way. If creating a table using HTML code is not your type, use the TablePress plugin and do it a lot easier. There are, of course, many alternatives to TablePress but such a useful and free option cannot be ignored. Go create your tables now! Good Luck!