You can do this on PHP as well as JS side. I wrote little function that you can add to your theme function.php file like in this tutorial and which will allows you to specify column numbers that you do not want to be sortable as well as table id on which you want to apply this:
Hi,
I have a couple of columns that I don't want users to be able to sort on, how can I remove the sorted class from them while leaving the others intact.
Thanks in advance
Hi Patric,
You can do this on PHP as well as JS side. I wrote little function that you can add to your theme function.php file like in this tutorial and which will allows you to specify column numbers that you do not want to be sortable as well as table id on which you want to apply this:
In this example it will disable sorting on columns 3 and 4 for table with id 37
Please be aware that numbering is zero based (so first column would be 0) and it counts hidden columns as well
Perfect thank you