Column Order

Order the columns in different ways when a table is shown.

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:

NameYearCountrySport
Eric1986SwedenSoccer
Julia1991GermanyBasketball
Adam2002IndonesiaGolf
Kim1986ChileBadminton
Jackson1998AustraliaBaseball

Here is the same table, but with the columns and their order changed — while everything is the same when editing the table:

CountryNameYear
SwedenEric1986
GermanyJulia1991
IndonesiaAdam2002
ChileKim1986
AustraliaJackson1998

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.

The available settings for the Column Order module in the "Settings" sidebar of the "TablePress table" block.
The available settings for the Column Order module in the “Settings” sidebar of the “TablePress table” block.

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:

ModuleSlugConfiguration parameterNameDescriptionTypeDefault value
Column Ordercolumn-ordercolumn_orderenum (default, reverse, or manual)default
Column Ordercolumn-ordercolumn_order_manual_orderstring"" (empty string)