DataTables Counter Column

The DataTables JavaScript library has a Counter Column plugin that transforms a table’s first column into a column with a “counter” for the row number to the table. This column is not sortable, and changes remains in place as the sorting and filtering is applied to the table. Because of that it can used for having a ranking column, even after sorting.

To use this in your tables, download, install, and activate this Extension like a regular WordPress plugin. Then change your table’s Shortcode from something like

[table id=123 /]


[table id=123 datatables_counter_column=true /]

Additionally, you will need to add a new first column to that table (by selecting the checkbox below the current first column of the table, and clicking the “Insert” button after “Selected columns:”).

If this Extension is helpful for you, please consider supporting further TablePress development with a donation. Thank you!