Hello! I am wanting to change the default sorting of the date column From Ascending TO Descending in the PHP code.
I am no programmer (as you've already learned from my other tickets :) ) so I am looking for a point in the right direction, of where to find the line of code.
Since wpDatatables only allows for one column sorting and the main column I need to sort by is not Date, I need to have the plugin default settings for date to be set to Descending. I hope I explained it properly. Thanks!
I'm not sure I understand. You have another column (which is not date-type) to be the default sorting column for the table?
If that is true, the date column will follow that column's sorting, so you won't be able to define "Descending" sorting for the date column.
On the other hand, if you need to make the date column be the default sorting column for the table, you can simply access its settings/sorting and choose Descending, after you make it the default column:
Hello! I am wanting to change the default sorting of the date column From Ascending TO Descending in the PHP code.
I am no programmer (as you've already learned from my other tickets :) ) so I am looking for a point in the right direction, of where to find the line of code.
Since wpDatatables only allows for one column sorting and the main column I need to sort by is not Date, I need to have the plugin default settings for date to be set to Descending. I hope I explained it properly. Thanks!
Hello Timothy
I'm not sure I understand. You have another column (which is not date-type) to be the default sorting column for the table?
If that is true, the date column will follow that column's sorting, so you won't be able to define "Descending" sorting for the date column.
On the other hand, if you need to make the date column be the default sorting column for the table, you can simply access its settings/sorting and choose Descending, after you make it the default column:
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables