TablePress: Turn Dull WordPress Tables into Sortable, Mobile-Ready Ones

Date:

A wall of un-styled cells buries good data. TablePress builds clean WordPress tables you can sort, search and page through, without writing a line of code, and keeps each table in one place so an update lands everywhere it’s embedded.

The short answer: TablePress is a free WordPress plugin for building tables without code. Build or import a table in its editor, insert it with the TablePress table block (or its shortcode), and it renders with sorting, search and pagination already switched on. For wide tables, the free version’s Horizontal Scrolling option keeps the table scrolling inside its own box on phones; the collapse, stack and flip layouts are paid extras. Because the table lives in one place and every post points at it, editing it once updates it everywhere.

Tables are where a lot of articles lose readers: comparisons and stats crammed into raw cells nobody can scan. To see exactly what TablePress adds, we built the same 15-row table both ways on a test site, once with the built-in WordPress Table block and once with TablePress 3.4, both on WordPress 7.0 with the default Twenty Twenty-Five theme. The screenshots below are from that test.

Three tiers of a TablePress tableProgressive enhancement — and one table keeps every embed in sync
1 · Basic

Build or import, insert with the TablePress block (or the shortcode). Clean, readable — enough for most articles.

2 · Interactive

Sort, search, paginate — on by default. Adds JavaScript: switch it off for small tables that don't need it.

3 · Mobile-friendly

Horizontal scrolling (free) keeps wide tables in their own box. Collapse, stack and flip layouts are paid extras.

The WordPress Table block vs TablePress: what changes

WordPress already has a Table block, and for a small table it’s fine. Here are the same 15 HTTP status codes in it: clean, bordered, and every row printed, top to bottom.

The built-in WordPress Table block on a desktop page showing all 15 rows of a table of HTTP status codes, from 200 OK to 503 Service Unavailable, with five columns: code, name, class, what it means, and whether the response is cacheable by default. Every row is printed at once; there is no search box, no sorting and no paging.

The same rows in TablePress look like this. The data is identical. What’s new is the layer around it: a search box, sortable column headers, a rows-per-page selector, and pagination with an entry count.

The same HTTP status-code table rendered by TablePress on a desktop page: an entries-per-page selector set to 5 and a search box above the table, sort arrows on every column header, alternating row shading, and below the table the line Showing 1 to 5 of 15 entries next to page links 1, 2 and 3.

That’s the trade in one picture. The Table block gives you a static grid; TablePress gives readers a way to work with the data, at the cost of loading a JavaScript library on the page.

Tier 1: a clean basic table (no code)

The quickest win, a readable table in minutes:

  1. Install and activate TablePress from the plugin repository.
  2. TablePress → Add New Table to start from an empty grid, or Import a Table to bring the data in.
  3. Fill in or check the data in the table editor, give the table a name and description, and save.
  4. In the post, add the TablePress table block and pick the table. (The shortcode, [table id=1 /], still works anywhere blocks don’t.)

Importing beats retyping. The import screen takes a file upload, a URL, a file already on the server, or plain pasted text, and reads CSV, Excel (XLSX), ODS, HTML and JSON. We pasted our 15 rows as CSV:

The TablePress Import Tables screen with Manual Input selected as the import source and 16 lines of comma-separated data pasted into the Import data box - a header row of Code, Name, Class, What it means and Cacheable by default, then one line per HTTP status code - with Add as new table selected and the Import button below.

That’s it: a clean table with no HTML to hand-maintain. For many articles this tier is all you need.

Insert the table by block or shortcode, never as pasted HTML. Edit the table once and every embed updates with it.

Tier 2: interactive tables (sort, search, paginate)

TablePress’s DataTables integration turns a static grid into something readers can work with: sort any column, search within the table, and page through long datasets. The settings live on each table’s Edit screen, in the Table Features for Site Visitors panel.

The TablePress Table Features for Site Visitors panel on a table's edit screen, with checkboxes for enabling visitor features, sorting, search and filtering, pagination with a rows-per-page box set to 5, pagination length change, the information line, and horizontal scrolling, plus a Custom Commands field for extra DataTables parameters.

One thing we didn’t expect: on our freshly imported table, sorting, search, pagination, the rows-per-page selector and the info line were already ticked. So the real decision is the opposite of what most guides describe. It isn’t “remember to switch them on”, it’s “switch them off where they don’t help”. In use, it works the way a reader hopes. Typing error into the search box and sorting by the last column narrowed 15 rows to the 8 error codes, cacheable ones first:

The TablePress table with the word error typed into the search box and the Cacheable by default column sorted in descending order: 410 Gone and 404 Not Found appear first with Yes, followed by 503, 502 and 500 with No, and the footer reads Showing 1 to 5 of 8 entries (filtered from 15 total entries) with page links 1 and 2.

The caveat: these features load JavaScript, so reserve them for tables that genuinely benefit. On a five-row table they’re just extra script weight on the page.

Tier 3: make it mobile-friendly

With most traffic on phones, wide tables are the real test. Here’s what we saw at a phone’s 390-pixel width:

Two phone-width screenshots side by side, each 390 pixels wide. On the left, the WordPress Table block: its five columns are cut off at the right edge and the table scrolls sideways inside its own box, with every one of the 15 rows printed below. On the right, the TablePress table: the entries-per-page selector and search box stack above the table, its columns also scroll sideways inside their box, and only five rows are shown before the pagination.

Two honest findings from that test:

  • Both scroll sideways. In this block theme the Table block already wraps the table in a box that scrolls horizontally, so neither version broke the page layout. Older or heavily customised themes don’t always do this, so check yours on a phone.
  • TablePress’s real phone advantage is pagination. Five rows at a time instead of fifteen made the TablePress page about a third shorter than the Table block page at the same width.

In the free version, the mobile setting is the Horizontal Scrolling checkbox in that same Table Features panel. Tick it for any table with more than a few columns and it scrolls inside its own container. There is no separate “responsive mode” switch in the free plugin’s options. The layouts that rearrange a table for small screens, collapse (extra columns fold into an expandable row), stack and flip, come from the Responsive Tables module in the paid Pro and Max plans. Whichever you use, test on a real phone.

Best practices (and common mistakes)

A few habits keep TablePress tables clean:

  • Always label columns with clear headers. A headerless table is unreadable and inaccessible.
  • Give each table a name and description for context (and screen readers).
  • Turn on Horizontal Scrolling for anything wide, rather than hoping the theme handles it.
  • Switch sort, search and pagination off on small tables. They’re on by default, and a three-row table doesn’t need the JavaScript.
  • Limit tables per article. Clarity over quantity: only include the comparisons that earn their space.
  • Import rather than retype. Paste CSV or upload an Excel, ODS, HTML or JSON file straight from the source.

A table without headers isn’t a table, it’s a grid nobody can read. Label the columns first, style second.

The short version

TablePress builds code-free WordPress tables you insert with its block or shortcode, so one edit updates every embed. Compared with the built-in Table block, it adds sorting, search and pagination, switched on by default, so turn them off where a table is small. On phones, the free Horizontal Scrolling option keeps wide tables inside their own box, and pagination keeps long tables short; collapse, stack and flip layouts are paid extras. Label columns, name every table, and import from a spreadsheet rather than retyping.

Frequently Asked Questions

Can I import data from Excel or Google Sheets?

Yes. TablePress imports CSV, Excel (XLSX), ODS, HTML and JSON, by file upload, URL, a file on the server, or pasted text. From Google Sheets, download the sheet as CSV or XLSX and import that. Re-importing with “Replace existing table” is also how you bulk-update a large table.

Do I need TablePress Pro?

Only for the layouts that rearrange a table on small screens: collapse, stack and flip come from the Responsive Tables module in the Pro and Max plans. The free version already covers the block and shortcode, import, sorting, search, pagination and Horizontal Scrolling, which is enough for most article tables.

What happens to my tables if I deactivate TablePress?

The tables stay in your database, but nothing renders them. A shortcode such as [table id=1 /] shows up on the page as plain text, and the TablePress block no longer displays the table. Deactivating doesn’t delete anything, so reactivating the plugin brings every embed back.

Share post:

Subscribe

Popular

More like this
Related

WooCommerce Search by SKU or ISBN Finds Nothing? It Never Looks There

A shopper types the SKU from your catalog, or the ISBN printed on the back of a book, and gets "No products were found". The product is right there, and the number is on its page. Search simply never reads that part of the product.

Computer Slow but CPU and Memory Look Normal? Check the Handle Count

Chrome takes a minute to open, or doesn't open at all. Every click waits. You open Task Manager expecting to find the culprit, and it tells you everything is fine. Here is the number that isn't, and the fix that takes two minutes.

Kernel-Power 41 Tells You Your PC Restarted, Not Why

Your PC restarts with no blue screen, and the only clue is a critical event saying it didn't shut down cleanly. Here is how to get from that event to a short list of suspects.

Set Up WordPress SMTP Without a Plugin, Even on a Multisite Network

WordPress mail goes out as wordpress@ your domain, from the web server, and lands in spam. An SMTP plugin fixes that. So do about twenty lines of code, and on a network of sites the code can give every site its own mailbox and its own password.