Row Order

For some tables, it can be useful to show the rows in random, reversed, sorted, or manually chosen order each time.

The same is possible for columns using the Column Order feature module.

Feature description

Here are examples for different row order types:

Normal order

This is an example table:

NameYearCountrySport
Eric1986SwedenSoccer
Julia1991GermanyBasketball
Adam2002IndonesiaGolf
Kim1986ChileBadminton
Jackson1998AustraliaBaseball

Reversed order

This is the same table but in automatically reversed order:

NameYearCountrySport
Jackson1998AustraliaBaseball
Kim1986ChileBadminton
Adam2002IndonesiaGolf
Julia1991GermanyBasketball
Eric1986SwedenSoccer

In addition, it is possible to chose “random” as the row order, which is a good way to prevent that some rows get more “attention”, e.g. when showing reviews or products.

Using the “manual” order, it is possible to show only some desired rows of a table.

Usage instructions

To use these features with your tables, activate the “Row Order” feature module on the “Modules” screen of TablePress Pro or TablePress Max. Then, configure the desired options in the “Row Order” section of the “Settings” sidebar of the table’s “TablePress table” block when editing the post or page with the table, or use the configuration parameters from below.

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, the Elementor widget, or in the Shortcode that you are using to embed the table:

ModuleSlugConfiguration parameterNameDescriptionTypeDefault value
Row Orderrow-orderrow_orderenum (default, reverse, sort, or manual)default
Row Orderrow-orderrow_order_manual_orderstring"" (empty string)
Row Orderrow-orderrow_order_sort_columnstring"" (empty string)
Row Orderrow-orderrow_order_sort_directionenum (asc or desc)asc