WordPress.org

Ready to get started?Download WordPress

Forums

WP-Table Reloaded
[resolved] Sorting doesn't recognize (2 posts)

  1. rytrom
    Member
    Posted 1 year ago #

    http://www.ereztech.com/products/product-list/ - the first column doesn't treat embedded HTML correctly and sorts the link-containing values to the top. Somehow other columns have no such a problem.

    Advice?

    http://wordpress.org/extend/plugins/wp-table-reloaded/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Hi,

    the reason for this probably is that the DataTables JavaScript library (which is used for the sorting functionality), recognized the columns as strings. You could try to force these to HTML, so that the visible content should be used for sorting. To do that, please try adding

    "aoColumnDefs": [ { "sType": "html", "aTargets": [ "_all" ] } ]

    to the "Custom Commands" textfield in the "DataTables JavaScript features" section on the "Edit" screen of your table.

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic