ensony
Forum Replies Created
-
Thank you for your help. We’re currently using Advanced Custom Fields PRO Version 5.8.7 in this project.
Hi Tobias,
Thank you very much for your assistance. I have successfully resolved the issue by incorporating “order: []” into the
tablepressInitfunction:$('table.tablepress').dataTable({ fixedHeader: true, order: [] });Thanks so much for your support!!
https://tablepress.org/modules/row-order/
Or I need to pay for ‘premium plan’ for ‘Manual row order’ function?
[table id=123 row_order=manual ]
For keep for current order from wp admin?
If I don’t want to set ‘row_order_manual_order=”5,2,8-12″‘ one by one, could it auto follow the ‘order’ from wp admin?
Thanks so muchThanks Tobias!
I’ve already remove below code, which is for my testing
<script> let table = new DataTable(‘#tablepress-358’); </script>
In/wp-content/themes/Archive/scripts/index.js., there is a section of code related to the initialization of TablePress:tablepressInit: function () {
$(‘table.tablepress’).dataTable({
fixedHeader: true,
});
setTimeout(function () {
$(‘.dataTables_wrapper’).each(function (index) {
$(this).on(‘page.dt’, function () {
$(‘html, body’).animate(
{ scrollTop: $(this).position().top – 200 },
100);
});});
}, 200);},
It’s seem not related to the sorting, may u please point out which part will affect the default sorting? I would like to keep the current sorting from wp admin.
Really many thanks.