Is there a way we can get it to automatically show 12 rows on the monthly data and 52 rows on the weekly data, that would be preferable. Right now it defaults to 10 on monthly and 25 on weekly.
You can't use this option out-of-the-box, but there's a way to do it.
You need to open this file: ../wp-content/plugins/wpdatatables/templates/admin/table-settings/table_settings_block.inc.php and around line 331 you'll see this:
You're still missing additional code for me to insert, it's still only loading 10
items per page, but then have you switch to the last two items. We need them to make it 12 rows of data visible on one page
I am sorry, I forgot about "Showing XX entries" which can cause a conflict.
Like I said in the previous reply, you can add a couple of more lines of code to ../wp-content/plugins/wpdatatables/templates/admin/table-settings/table_settings_block.inc.php and around line 331, like this:
That coding worked great, thank you! However, now we are seeing arrow navigation below the table on the right. We'd like just the most recent up-to-date 12 rows and the rest hidden on the backend (so people can still download it on the excel option), but no arrow navigation, etc.
This will be affected on all tables, but if you want just for specific one then insert this code on the page where is that table between the style tag (<style>Code here</style>):
Is there a way we can get it to automatically show 12 rows on the monthly data and 52 rows on the weekly data, that would be preferable. Right now it defaults to 10 on monthly and 25 on weekly.
Hello RFAWP.
You can't use this option out-of-the-box, but there's a way to do it.
You need to open this file: ../wp-content/plugins/wpdatatables/templates/admin/table-settings/table_settings_block.inc.php and around line 331 you'll see this:
You can change the values "10" and "25" to "12" and "52" and you'll have that option in the "Display" tab above the table. See how I changed 25 to 30:
I hope this helps.
Best regards.
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
You're still missing additional code for me to insert, it's still only loading 10 items per page, but then have you switch to the last two items. We need them to make it 12 rows of data visible on one page
Hello again RFAWP.
I am sorry, I forgot about "Showing XX entries" which can cause a conflict.
Like I said in the previous reply, you can add a couple of more lines of code to ../wp-content/plugins/wpdatatables/templates/admin/table-settings/table_settings_block.inc.php and around line 331, like this:
This adds "12" and "52" in the Display tab above the table:
Then, open ../wp-content/plugins/wpdatatables/source/class.wpdatatable.php and around line 3092, add "12" and "52", so it looks like this:
And the last thing to do is to go to line 488 of the same file, and modify it so it looks like this:
So, again, you only need to add "12" and "52".
This should work just fine.
Best regards.
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
That coding worked great, thank you! However, now we are seeing arrow navigation below the table on the right. We'd like just the most recent up-to-date 12 rows and the rest hidden on the backend (so people can still download it on the excel option), but no arrow navigation, etc.
Can you help?
Hello again RFAWP.
You're welcome.
When you say "arrow navigation", you mean this, right?
If this is what you want to hide, then just add this code in Custom wpDataTables CSS under the “Custom JS AND CSS” in main settings of wpDataTables:
This will be affected on all tables, but if you want just for specific one then insert this code on the page where is that table between the style tag (<style>Code here</style>):
Best regards.
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