Can’t sort table
-
I installed the DataTables Sorting plugin but I can’t sort the tables I enabled sorting on. It happens with every browser I tried.
The demo table on the TablePress sorts properly.
I checked the documentation and I didn’t find anything that would cause it. I changed to TwentySeventeen theme and disabled the only other plugin (Gutenberg) that I have installed without any effect. The WordPress version of jQuery is being loaded.
I’m using the latest versions of WordPress, TablePress, and DataTables Sorting.
Table Head Row is checked.
The “sorting” class is not applied to the <th> tags. I did change the priority of my style.css to load after TablePress css, but undoing that didn’t make any difference.
There’s no output from WP_DEBUG.
The only thing I see is a JS error in jquery.datatables.min.js in function GA:
TypeError: i is undefined
The statement is:
i._DT_CellIndex = {row: b, column: l};
But this is present whether or not DataTables Sorting is enabled.
Could developing using localhost be causing it?
The page I need help with: [log in to see the link]
The topic ‘Can’t sort table’ is closed to new replies.