If you have a manual table, or a table that is stored in the database, and has an auto-increment row ID column, then this is possible, yes.
Every manual table has a hidden wdt_ID column, which stores the ID of every new row. You can sort the table in descending order by that column, and it will show the last entry on top. To get to wdt_ID settings, you need to click on "Complete Column List" button - the yellow button above the table, on the right:
When you click on it, you'll see a screen like this:
To access settings, click on the wrench, and it'll open up column settings for wdt_ID column, where (under Sorting tab), you can configure if the sorting will be ascending or descending.
Hi,
I was wondering if it is possible to automatically show the latest entries on top of the table on a webpage (so, without sorting it manually...).
I couldn't find information in the documentation about this.
Thanks for your help.
Regards,
Sander Michelsen
Hello Sander.
Thank you for your purchase.
If you have a manual table, or a table that is stored in the database, and has an auto-increment row ID column, then this is possible, yes.
Every manual table has a hidden wdt_ID column, which stores the ID of every new row. You can sort the table in descending order by that column, and it will show the last entry on top. To get to wdt_ID settings, you need to click on "Complete Column List" button - the yellow button above the table, on the right:
When you click on it, you'll see a screen like this:
To access settings, click on the wrench, and it'll open up column settings for wdt_ID column, where (under Sorting tab), you can configure if the sorting will be ascending or descending.
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