Hi Eric,
yes, you can achieve this through a custom command to the DataTables library.
Just add the following to the “Custom Commands” textfield in the “DataTables JavaScript features” section on the “Edit” screen of your table:
"aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] } ]
As the code uses a zero-based indexing, the 0 indicates that (in this example) the column 1 shall not be sortable. Just change that to whatever column you don’t want to be sortable.
Regards,
Tobias
Hi Tobias,
I don’t see that field when I edit my table. I assume it should appear in the Data Manipulation section of the edit table form. I’m running version 1.2 of the plug-in, what am I missing?
Thanks!
Eric
Hi Eric,
version 1.2 of the plugin? Wow, that is really old 🙂
You really should update to the latest version 1.9.1!
(You will need at least WordPress 2.8 for this version, I recommend the latest 3.1.2.)
Regards,
Tobias