Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Add Tables in WordPress Posts and Pages (No HTML Required)

Do you want to add tables in WordPress posts and pages? Tables are a great way to display data in an understandable format.

In the past, you needed to use a plugin or HTML code to create a table in a WordPress post or page.

In this article, we’ll show you how to create tables in WordPress posts and pages without using a plugin or any HTML code. We’ll also cover how to create advanced tables in WordPress with sorting and search features.

Adding tables in WordPress without writing any HTML

Video Tutorial

Subscribe to WPBeginner

If you’d prefer written instructions, just keep reading.

Creating Tables in the WordPress Block Editor

WordPress makes it super easy to add tables using the default WordPress block editor.

Simply create a new post or page, or edit an existing one. Once inside 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.

Adding a 'Table' block in the WordPress block editor

Next, you’ll be prompted to choose how many columns and rows you want for your table. Both figures default to 2.

Don’t worry if you’re not 100% about the exact count because you can always add/remove table columns and rows later.

Type in the number of columns and rows you want for your table

We’ve created a table with 3 columns and 4 rows:

Our table created using the WordPress block editor

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.

Adding a header section or a background color to your table

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:

Adding a new column to your 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:

Changing the text alignment for your columns

Here, we’ve applied center alignment to the three columns that have numbers:

All 3 columns with numbers in are now centered

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.

Changing the alignment of your whole table

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:

A 'wide width' table that extends beyond the usual content area

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.

To create advanced tables, you need to use a WordPress table plugin.

Creating Tables Using the TablePress Plugin

TablePress is the best WordPress tables plugin on the market. It is 100% free, and it allows you to easily create and manage tables.

The best thing is that you can edit your table separately and even add a large number of rows.

TablePress also becomes necessary, if you are using the older classic WordPress editor which does not come with tables functionality.

First, you need to install and activate the TablePress plugin. For more details, see our step by step guide on how to install a WordPress plugin.

You’ll then see a TablePress menu item in your WordPress dashboard. Go to TablePress » Add New to create a new table.

Adding a new table in TablePress

You’ll need to type in a name for your table and decide how many rows and columns you want. You can always add / remove table rows and columns later as well.

We’re going to create a table with 4 rows and 3 columns:

Entering the title for your table in TablePress

Once you have added the table name, rows, and columns, go ahead and click the ‘Add Table’ button to create your table.

Next, you’ll see a screen with your table’s information and an area where you can add content.

Editing your table details in TablePress

Simply type the data you want into the cells of your table. You can sort the columns of data using the arrows above them. These will sort in alphabetical or numerical order.

Sorting your table's columns in TablePress

There are advanced options below the ‘Table Content’ area. In ‘Table Manipulation’, you can do things like adding, removing, and duplicating rows:

The 'Table Manipulation' section of tools

In ‘Table Options’, you can add a header and/or footer row, which won’t be sorted in with the data. You can also decide where to show the table name and description:

The 'Table Options' section in TablePress

Finally, you can set various options in the ‘Features of the DataTables JavaScript library’ section. This allows you to create responsive tables that can be filtered, searched, and sorted by your readers.

Advanced javascript options for your table

Once you’re happy with your table, click ‘Save Changes’.

You can add your table to any post or page. Simply add the shortcode to a paragraph block or use the shortcode block.

Adding the shortcode for your table in the block editor

If you’re using the classic editor, then simply add the shortcode straight into your post:

Adding the shortcode for your table in the classic editor

If you want to change your table in the future, you can come back to TablePress in your dashboard and make changes. Your table will be automatically updated in any posts and pages you’ve used it in.

TablePress also allows you to import data from spreadsheets and CSV files. Similarly, you can also export a TablePress table data into a CSV file which you can then open with any spreadsheet program like Microsoft Excel or Google Sheets.

We hope this article helped you learn how to add tables in WordPress posts and pages without using HTML. You might also like our post on how to create an email newsletter, and how to make a contact form in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit – a collection of WordPress related products and resources that every professional should have!

Reader Interactions

122 CommentsLeave a Reply

  1. Good table plugin but not mobile friendly.
    The table right side get clipped in mobile view.

  2. Hey

    Can someone show me, how I can create dynamic table?

    I am new to WordPress. I like to maintain a database of gadgets say phones. I want an interface for me as admin to enter the specs and a picture of the item. For users, they will have the option to filter by brand and also compare 2 or more of these gadgets in a table format. They should also query an item and see all the specs in a table format. Please advice as to how this can be easily managed or maybe you have an article already for this!?

    thanks

    • Please, other readers, don’t be to harsh with me (especially using the R word). I am very new to all of this and feel successful in creating my first table. Now, how do I change the look and feel of the text in the table? I am using it to link to materials contained further on the page and highlight important pieces.

      • You need to use CSS. There’s a bit of a learning curve to all this (in your case, you might want to style the table, rows, table cells, paragraphs in table cells, links, hover effects etc etc), so only start if it’s really important.

    • I just lost a Table that I created using Tablepress. I don’t know how it was deleted, but I also just found out that there is no way to recover a deleted table. Since I don’t know how the table was deleted, I am worried about relying on Tablepress.

  3. Is it me or WordPress is retarded? I mean any WYSIWYG editor can do a table on the fly these days, but the biggest CMS can’t? I must be missing something here, but using a plugin or iframes is so much trouble for a simple table… I’ll code it myself.

    • David,- I am with you. I dont get it. My first HTML editor back in 1998 had tables…. how come it has become easy to make a CMS based website, but you cant make a table…. Hellooooooo!!

    • Hi David,

      I initially wanted to code it in myself, but wordpress kept formatting my table all over the place. Is there a specific was to use HTML in a page?

      Many Thanks

  4. I copied a table from Word into WordPress and the code is neat and clean. It works well. Now I want to try the same table with the FooTable plugin to make it responsive, althought it already is responsive in a way. Thought that a webdesigner keeps the material on the local computer anyway and thus can make changes in Word and replace the table in WP. This might be cheating but it works. Sirje

  5. TablePress is an amazing plugin.

    Thank you for this post.

    Actually today I downloaded it and already donated some money to their team.

    Have a fantastic day everyone.

  6. The problems with plugins like this is that if you ever abandon the plugin the content linked to that plugin is busted across your entire site.

    While very slick plugin I try to minimize my database dependency on them as much as possible.

    • Neal, you are right about that. However, TablePress uses custom post types for tables. This means your tables are stored in the database even if you deactivate the plugin. You can still export the data.

      Admin

  7. Hello Wpbeginner Team,

    Is it possible to call script in same way ?

    For ex. I have 1000 different scripts for 500 different post.

    I want to call 2 table in each post and in that table Want to run script not text so Is it possible to call two scripts in table ?

  8. Thanks for this! what resources can I use to create a table in which my clients can log in and post the prices of items they want to either buy and sell and which remains visible to the public

  9. I’m interested in adding a table to a form or page. So if a user goes to the page, he can add the Quantity in the cells and at the bottom of the form he can send the table to me.

    Basically it would be a really simple order page without any payment options.

  10. I’v been trying to insert a table in a blog post by using the tablepress plug in. Suddenly, the word Edit inside a pair of brackets has been appearing in the lower left corner of each page of my web site. I can’t get rid of it. Do you know how I can fix this?

    Many thanks!

    Pierre

  11. superb… i just install it after reading this post… i am having some issues when i go for mobile preview… lets see, overall great plugin and post (Y)

  12. Ok, I installed the plugin and used a short code to add table to post. Now my query is what google reads short code or table content? Is it seo friendly? Give me a linke to your post where you used this plugin?

  13. I like the plugin, but I cannot figure out how to customize the width/height of the columns/rows, or how to have a particular cell be only as large as the contents inside it. Is there any way to do this? Thank you.

    • Good question, I’m interested in the answer too. Anybody knows. Thanks! I’ll see if I can check.

      • It would be awesome if it could view any mysql tables in the database.. should be an easy thing to fix and increase usefullness of this plugin so much

  14. How do I remove the “Show xx entries” at the top of the table and “showing 1 to 6 of 6 entries” at the bottom?

    • Actually it is out there when you add row and table. The setting is just below it. Look carefully.

  15. Hi,
    how can i use the tablepress form in my post section to particular user can able to add tables using copy, import files… Please help me to use…Thank you.

    regards
    Jaya

  16. This is a great plugin. i have one question – i nee ot make the font bigger for the info that’s in my table. is there any way to do this other than entering code for each cell individually?

  17. So which WordPress version are you writing for? WordPress.com or WordPress.org, because I can’t find the plugin option on my dashboard. You really should specify this … now I’m back to writing code by hand after getting my hopes up.

  18. Wow.

    I’m not easily impressed but this managed to do it.
    Within minute after adding the plugin I had a visual pleasing and easily maintainable table on my site.

    Thanks!

  19. Love this plugin.
    Tried to style the table with Headway. No luck so far. Did someone else tried also? Would be great if it would be possible to do so.
    Again, great plugin :-)

    Ed.

  20. What a treasure this was to find! This non-programmer was having a serious non-day trying to create tables with code.

  21. Thanks for this ! Ive been searching the web trying to find a solution because I see all these awesome pricing tables on websites and Ive been using the TinyMCE plugin, which works but its not what I am really needing. Thanks again you guys rock

  22. Thanks for another very useful post!
    Please does anyone know if it is possible to add code into a cell? I need to add paypal code into a table but not sure the best way to do it?

  23. Thanks so much for this relatively simple to use plugin. It has saved me from much frustration as I am no techie and don’t actually want to spend hours doing what can be done with a plugin.

    I tried some of the other plugins for creating tables and was not impressed with their user-friendliness or lack thereof.

    Much appreciation!
    Yvonne

  24. This looks like Tables Reloaded, which we use on some sites. However, it looks easier to use and manage. How well does it work with caching plugins like w3 total cache?

    • This is the successor of WP Tables Reloaded plugin worked on by the same developer (Tobias). Tobias also commented on this post saying that the next version will be compatible with W3 Total Cache.

      Admin

  25. Absolutely agree: TablePress is THE BEST plugin for creating tables in WordPress (IMHO).

    Just a few things to add:

    1) TablePress is the successor to what USED TO BE the best plugin for creating tables in WordPress: WP-Table Reloaded (now retired). Both are the work of developer Tobias Bathge.

    2) Tables built with WP-Table Reloaded can be migrated to TablePress.

    3) Tobias’ support is extraordinary. When I first used TablePress in November of 2012, I encountered a bug in the HTML import function and reported it in the support forum at WordPress.org. Within an hour, Tobias published a fix to Github. But don’t take my word for it. Check out the support forum.

    Jeff Cohan

  26. Thanks Guys
    This could be the table plugin for me.

    In the past I’ve created tables in Dreamweaver then cut and pasted the code.

    I’ll throw out a few tweets on this one.

  27. I just got this plug in last week as an alternative to using google docs iframe functions. This works great and allows a client to update the table without updating the pages or posts. I did find that you have to make sure you empty the caches if you are using the W3 plugin, or else you will get a cached version of the table. Great write up.

    • Great to hear that you like the plugin!
      What you say about caching plugins, like W3 Total Cache, is true. Good thing though: The next version of TablePress will automatically clear the W3 Total Cache page cache, to make sure that all shown tables are up-to-date :-)

      Best wishes,
      Tobias
      Author of TablePress

  28. Seems odd to put a table creating tab in the main WordPress menu. The menu is supposed to be for top level functions. It seems that it should be in tools maybe, or in the post menu, where you select the tables, have the table making function accessible in the edit functions. Most times people are creating tables in posts and pages and would need to edit the table as well as the data within it.

    Having said that, it’s a pretty slick table maker.

    ­Rod Salm

    • I agree that the main menu is not always the best option, like when you only maintain a few tables once in a while. So, I made this an option :-) In the TablePress Plugin Options, you can actually choose where you want the TablePress menu entry to appear. Moving it to “Tools” or “Posts” is no problem with that :-)
      (The predecessor of TablePress put its menu under “Tools” by default. I then however got questions from users who couldn’t find it, after activating it. That is why TablePress will sit in the main menu by default.)

      Best wishes,
      Tobias
      Author of TablePress

    • Not odd at all. It is done for organizational purposes similar to contact forms, sliders, etc. By doing it this way, you can easily go to the menu and look at all the tables you have ever created rather than searching through the individual posts.

      Admin

  29. This is good. I use it. But I want to ask something. What if i have 7 column and 10252 rows excel table?

    • 10,000 rows? Why in the world would you want that to be part of your blog post? Attach it as a separate file, so those who want to download it can do so if they like. It would freak the user out to see how long the page is if you have that many rows.

      Admin

    • As the editorial staff pointed out already, there are better methods for such large tables, like offering a download, or using a custom PHP/mySQL solution.
      You can certainly try using TablePress with a table of that size, but I don’t really recommend it. It should work, but it will probably be slow, especially on the “Edit” screen of the table.

      Best wishes,
      Tobias

  30. Absolutely THE best table WordPress plugin at the moment. I tried them all, and this one is the most robust/powerful and yet at the same time the most simple to use. Good choice! :-)

Leave a Reply to Wyce Ghiacy Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.