Order the columns in different ways when a table is shown.
This feature module is part of the TablePress Premium plans.
Often, it’s easier to manage a table with the columns being in a certain order, or because the import source only offers the table in a certain column order. However, the visitor should sometimes see the table’s columns in a different order.
The same is possible for rows using the Row Order feature module.
Feature description
The “Column Order” feature module allows showing tables with different column orders, namely in “random”, “reversed”, or “Custom” order.
Consider this table:
Name | Year | Country | Sport |
---|---|---|---|
Eric | 1986 | Sweden | Soccer |
Julia | 1991 | Germany | Basketball |
Adam | 2002 | Indonesia | Golf |
Kim | 1986 | Chile | Badminton |
Jackson | 1998 | Australia | Baseball |
Here is the same table, but with the columns and their order changed — while everything is the same when editing the table:
Country | Name | Year |
---|---|---|
Sweden | Eric | 1986 |
Germany | Julia | 1991 |
Indonesia | Adam | 2002 |
Chile | Kim | 1986 |
Australia | Jackson | 1998 |
In this example, this was done by choosing the “Custom” column order with the custom column order “3,1,2” compared to the first table above.
Usage instructions
To use this feature with your tables, choose the desired options in the “Column Order” section of the “Settings” sidebar of the table’s “TablePress table” block when editing the post or page with the table.
Configuration parameters
To configure this module’s features, you can also use these configuration parameters in the “TablePress Table” block or in the Shortcode that you are using to embed the table:
Module | Slug | Configuration parameter | Name | Description | Type | Default value | |
---|---|---|---|---|---|---|---|
Column Order | column-order | column_order | enum (default , reverse , or manual ) | default |
|||
Column Order | column-order | column_order_manual_order | string | "" (empty string) |
On this page