Column Sorting with Pagination
-
This is more so a call for advice and guidance about coding a desire functionality (without plugins since I’m trying to learn!).
I created a custom template to query my custom post type and displaying it in a table format. The column headers are, for instance, First Name, Last Name, Occupation, etc.
I want the user to be able to sort by column header (toggling between ASC & DESC) by clicking on any column header. And I’ve done this functionality in Javascript before.
But the issue is how do I approach this when I have pagination enabled. I want to keep the pagination because I have over 1,000 records but I would love to code it so it sorts dynamically and keeps the sorted data while the user goes through the pages.
Any guidance?
The topic ‘Column Sorting with Pagination’ is closed to new replies.