When I add this code to the table tag WordPress throws up a warning that “This block contains unexpected or invalid content” and there is no option to “ignore”. The table gets greyed out and I am unable to edit the table further. I need the table to be editable in block mode with the tools for adding rows available because the (non thech savvy) site editor needs to be able to easily add rows to expand the table. Converting to classic or html breaks it for him.
]]>If you use PHP/Javascript then it is a no brainer. This plugin is unsupported and doesn’t always work, and has less features compared to the standalone “sorttable.js” from “https://www.kryogenix.org/code/browser/sorttable/” (except it’s support for multiple key sorting).
]]>RE: class=’sortless’
This does make the class sortless by the hints up arrow, down arrow & up+down arrow are still displayed
]]>Nothing says how sorting works, I’ve made the assumption that it is text based. However I’ve got a situation where I can’t get text to sort as it should. I have tried with 2 assumptions:
Neither sorts by ascii codes.
]]>It works well for static tables but duplicates rows after a table has been dynamically updated with Javascript.
Is there any workaround to this?
]]>we have an issue when trying to sort
by date.
Instead of using date, it’s sorting using text.
Please advise
]]>Hello @farhannoor,
I see you’re still active in the WP community, but this plugin says it hasn’t been tested with the last several versions of WP. Is this plugin still safe to use?
Thank you!
Thank you for this great plugin!
I’m using it to sort a table on my website.
One column has only unsortable signs as content. However I’m trying to sort this column by value.
It’s the column IMDb here: https://flimmerzimmer.eu/filmothek/
So I added span title to the span with corresponding value but it’s not sortable.
Any ideas how to sort this column?
]]>I tried this: class=”dateFormat-m-d-y g:i a”, but the times are not sorted correctly. I also tried putting dashes between each parameter so there were no spaces within the quotes. Is there a way to do this?
]]>Hello,
is it somehow possible to use this plugin for an table in the admin-backend? – That would be really helpfull.
Thanks in advance and br,
Niko
In the WordPress block editor I added the “tablesorter” class as an additional CSS class for my table. But WordPress is adding a <figure> tag outside the <table> tag and applying the “tablesorter” class to the <figure> tag, so the plugin doesn’t work.
Can you please update the plugin to account for this WordPress behaviour, or can you advise how I can make this work?
]]>I have a table with a date column but instead of having actual dates, it has a variety of strings like:
As you can imagine, sorting on this column isn’t very useful. I can remove the sorting on this column but what I’d like is to be able to restore the table to it’s unsorted condition. That is, when the table is first displayed, the rows are in order by this date column. If a user then sorts by one of the other columns, the only way to get back to the original order is to reload the page. Is there some way to have a button or link that causes the table to be reordered in its default order?
Ideally, I’d be able to place this button anywhere and change the label. That would let me put it in the header for this date column and its effect would be to sort on that column, since that’s the default order of the rows.
]]>Hi! I really like this simple plug-in but my tables will not sort in reverse alphabetical order. Can you tell me why? I cannot seem to figure out. Thank you!
Click on “Fruit” tab for alphabetical names:
Apple
Banana
Grape
Orange
Pear
When clicking on “Fruit” tab to reverse alphabetical order:
Pear
Grape
Apple
Orange
[Error] SyntaxError: Invalid character ‘\u001a’
(anonymous function) (jquery.tablesorter.min.js:2)
[Error] TypeError: $(‘.tablesorter’).tablesorter is not a function. (In ‘$(‘.tablesorter’).tablesorter({
sortLocaleCompare: true
})’, ‘$(‘.tablesorter’).tablesorter’ is undefined)
(anonymous function) (wp-script.js:3)
i (jquery.js:2:27368)
fireWith (jquery.js:2:28123)
ready (jquery.js:2:29926)
J (jquery.js:2:30282)
Hi
I cannot work out how to make the arrows up and down a different colour and size. I wnat to make them white and x2 larger.
Any help would be appreciated.
Thanks
]]>The date sort doesn’t work when using a m/Y output format. I tried using the class “dateFormat-mmyyyy” but that failed.
I confirmed that if I change the date output to m/d/Y and use the class “dateFormat-ddmmyyyy” then it does work.
Is that not an option to omit the day?
Thank you for the great plugin.
]]>Hi, first of all keep it up for the plugin. As you can see here https://mrcasinova.com, we have a table with sorting of RATING.. As you can see the sorting with decimals places number is not working correctly. 4.5 is showing about 4
]]>I’d really like your plugin, but I’d like to add the filter column option as shown here: https://mottie.github.io/tablesorter/docs/example-widget-filter-custom.html
How do I do that? I’ve uploaded all the files to my WordPress site, but I think the table-sorter.php might need some coding. Can you help me please.
]]>Firstly, thank you for a great plugin. I am using your plugin and whilst I can sort the columns by Date, it is sorting the dates by day, not year, so I am getting:
11.09.13
12.04.09
14.11.12
instead of:
12.04.09
14.11.12
11.09.13
Is there some way, short of listing the dates with their year first, that I can instruct the table to sort by year as opposed to day?
I need set the table to display the data descending as default, newest in first row, not in last row. Is it possible, and how?
Thank You for your reply, can you write me CSS trick?
Hi, your plug-in works great right out of the box thank you. I was wondering if it’s possible to have the initial sort desc and not asc for my numbers column (not alpha). I looked at the js and am not confident about editing it. Can you offer any support on this?
Thanks
Hello,
It’s common to use letters with accents like é, á, à, etc in Brazilian Portuguese. I’m having some trouble with tablesorter because it doesn’t see “é” as an “E” so it sends whatever starts with these characters to the bottom of the list.
Is there anyway how to fix that?
Thank you
]]>Hi, is there a way to sort date-time column?
If I try it sorts like:
01/11/2017 18:22
01/12/2017 05:40
01/12/2017 20:17
02/11/2017 10:31
02/11/2017 16:18
02/11/2017 17:38
02/12/2017 23:55
03/11/2017 16:07
03/11/2017 20:44
03/11/2017 22:01
…
This dates are generated in php foreach:
<table class="tablesorter {sortlist: [[0,0]]}">
<thead>
<tr><th>Date</th></tr>
</thead>
<tbody>
<?php
foreach ( $sent_list as $lista ) { ?>
<tr>
<td>
<?php
$date= new DateTime($lista[ts]);
echo $date->format('d/m/Y H:i');
?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
I can’t share link because is in a private area, sorry.
Thanks
Fosco
Hello, the plugin has worked for a few weeks and we noticed that sorting has stopped working all of a sudden. The plugin is installed and no code has changed since setting it up. We have tried to copy/paste the demo into our site, which also doesn’t work.
]]>I faced with a problem that not all data is correctly sorted in table – mostly it’s ok, but sometimes 9 hundred thousand in any million number stands lower than 0 and 1 hundred thousands.
https://mbch.guide/en/arenas/istoriya-proxodnyx/
like here. I’m getting data for this table using php code from csv file.
in table numbers are in text format and listed as “19 234 123” – with a simple spaces
How can you change the font size for tables, is this default or something you can configure in the plug or just using theme default?
]]>I were wondering, I have a Total row at the bottom of my table.
When i use this sort function (which i like very much) that row is also sorted with the other rows. is it any way i can make it fixed?
Hello:
I have a columns for State and City. I know you can shift-click on multiple columns to sort, but is there a way when you click on one column, it will sort two columns at the same time. I’d like the user to be able to click on State, and it will sort State and City at the same time.
Thanks,
Peter
]]>Thank you for your plugin!
Here is my table code, but all the rows are still sorting. Please let me know what I’m doing wrong.
TIA
Peter
<table class=”tablesorter”>
<thead>
<tr>
<th>Country</th>
<th>State</th>
<th>City</th>
<th>Name</th>
<th class=”sortless”>Address</th>
<th class=”sortless”>Telephone</th>
<th class=”sortless”>Website</th>
</tr>
</thead>
<tbody>
Hi,
This morning, Ubuntu server reminds me there is an update for MySQL, so I update it.
Then I found the table in mobile phone version is broken.
Can you check this?
]]>