Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    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

    Thread Starter esiebert7625

    (@esiebert7625)

    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

    Plugin Author Tobias B?thge

    (@tobiasbg)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude column from sorting’ is closed to new replies.