[Plugin: WP-Table Reloaded] Hiding & sorting columns
-
I used WP-Table Reloaded to create a table of eight columns. Sometimes, I want to display only five columns; on another page, I want to display all eight. I use the
hide_columns
parameter in the shortcode to accomplish this.But I also use
aoColumns
in the “Custom Commands” of the table definition, which seems to expect me to define a number of columns equal to those being shown in order for tablesorting to work. So sorting will work on one page and not the other with this definition:"aoColumns": [ { "sType": "html" }, null, { "sType": "date" }, null, { "sType": "html" } ]
And vice versa with this:
"aoColumns": [ { "sType": "html" }, null, { "sType": "date" }, null, { "sType": "html" }, null, null, null ]
How do I get around this and make tablesorting work regardless of how many columns are being displayed?
- The topic ‘[Plugin: WP-Table Reloaded] Hiding & sorting columns’ is closed to new replies.