We will be moving away from TablePress and using the built-in table block. Add a block and search for ‘Table’:
A table can include a header section (enable in the block settings on the right column). A table can use basic borders or striped background for increased readability, also set in the right column.
TablePress
The TablePress plugin is used to create tables that display data on the site. It is available in the admin area sidebar menu under TablePress.
Consider carefully before creating a table! Tables are not good for usability on phones, so where possible they should be avoided. Alternatives to tables include bullet lists and annotated bullet lists that might include multiple elements such as a title, description, link and so on. Here are examples:
- Bullet list
- Bullet list
Or for more complex data:
- Annotated or divided bullet lists – like this one.
dan.bashaw@danbashaw.com | 519.914.5537 - Annotated or divided bullet lists – like this one.
dan.bashaw@danbashaw.com | 519.914.5537
If you do need a table, and find it is too wide for the text area, you can select the horizontal scrolling option in TablePress to allow the table to be scrolled or swiped from left to right.
Tutorial
- How to Organize Data with Tables in WordPress using TablePress – This is a good introduction for new staff,or for those wanting a refresher tutorial.
Documentation
- TablePress FAQ and Info – General documentation of common issues. Most questions can be answered here.
- TablePress Documentation – In-depth technical documentation.
Example
Sample Table
Table Type | Usage | Example |
---|---|---|
Multi-column data | Tables should not be used to control layout, but should be reserved for situations where several columns of data need to be displayed. | No example currently available on the site, but a financial report table would be a typical example. |
Interactive | Tables with DataTables JavaScript Library selected are best used for long reference tables that a user might want to sort or search. For smaller tables, these features should be turned off. | A table that is long enough that it requires the ability to search and sort columns. |