Columns with mixed numbers and letters don’t sort properly

[ad_1]

Hi Tobias,

Thank you for your quick reply!

I am not very JS-savvy, but I managed to add a custom command like this:

"columnDefs": [ { "orderData": [ 1,3,5,8 ], "targets": [ 2,4,6,9 ] }, { "visible": false, "targets": [ 1,3,5,8 ] } ]

As it appears, I am trying to assign 4 hidden columns to be used as the sorting data for the visible columns, unfortunately it doesn’t seem to work. I guess my command is wrong 🙂 Any advice is greatly appreciated.

I am going to buy the Pro-plan for 3 sites if this works, as I need the responsive layouts too.

Thanks again!

EDIT: Figured it out after a bit of digging through Google. This is the proper command:

columnDefs: [ 
{ orderData: [ 1 ], targets: [ 2 ] },
{ orderData: [ 3 ], targets: [ 4 ] },
{ orderData: [ 5 ], targets: [ 6 ] },
{ orderData: [ 8 ], targets: [ 9 ] },
{ visible: false, targets: [ 1,3,5,8 ] }, ]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer