Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    you should be able to fix that on those tables, by telling DataTables, that those two columns contain HTML. Then, the script will sort on the text of the link and not the actual HTML.
    To achieve that, you will need to add a command to the “Custom Commands” textfield in the “DataTables JavaScript Features” section on the “Edit” screen of those two tables.

    For the downloads one, add this code:

    "aoColumns": [ null, null, null, null, { "sType": "html" }, null ]

    For gallery table, add this:

    "aoColumns": [ null, null, { "sType": "html" }, null, null ]

    Hope that helps ??

    Best wishes,
    Tobias

    Thread Starter kgagne

    (@kgagne)

    Tobias,

    I wish all plugin authors were as timely and detailed with their help! Thanks so much. Since I don’t know JavaScript, I doubt I could’ve figured this out on my own.

    With your suggestions as a basis, I think I can address this issue on other tables, should I encounter it in the future. I also changed the code for the aforementioned downloads table to this:

    “aoColumns”: [ null, null, null, null, { “sType”: “html” }, { “sType”: “html” } ]

    You rock!

    -Ken

    Hi Ken,

    thanks for your nice words, I appreciate it! ??

    And your change to the code is perfectly correct ??

    Best wishes,
    Tobias

    This worked great for me at my page.
    Thanks much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP-Table Reloaded] WP Table Reloaded sorting links’ is closed to new replies.