Please note that English is the only supported language for the plugin, so make sure to translate your future responses.
I'm not sure that I understand what you're trying to do here - you want to display more than 100 results on a page, but to hide them all? What's the purpose of this, can you please explain?
You can add or modify some lines of code in ../wp-content/plugins/wpdatatables/templates/admin/table-settings/table_settings_block.inc.php and around line 348. I'll show you an example of how to add 12 and 52 to the list, and you can modify the code:
And the last thing to do is to go to line 498 of the same file, and modify it so it looks like this:
public function setDisplayLength($length) {
if (!in_array($length, array(1, 5, 10, 12, 20, 25, 30, 50, 52, 100, 200, -1))) {
return false;
}
So, again, you only need to add "12" and "52".
Instead of 12 and 52, you would modify "200" to "250" (or add "250" after "200"), and add "500" and "1000". To remove "All", you would need to remove all instances of "-1" from lines above, and also these two:
Hallo Support,
Is het mogelijk om meer dan 100 resultaten per pagina te zetten, maar alles moet worden verborgen.
Hello Rik
Thank you for your purchase.
Please note that English is the only supported language for the plugin, so make sure to translate your future responses.
I'm not sure that I understand what you're trying to do here - you want to display more than 100 results on a page, but to hide them all? What's the purpose of this, can you please explain?
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
Hello Aleksandar,
I want 100/250/500/1000 results is that possible. And disable the option All.
Hi again, Rik.
You can add or modify some lines of code in ../wp-content/plugins/wpdatatables/templates/admin/table-settings/table_settings_block.inc.php and around line 348. I'll show you an example of how to add 12 and 52 to the list, and you can modify the code:
This adds "12" and "52" in the Display tab above the table:
Then, open ../wp-content/plugins/wpdatatables/source/class.wpdatatable.php and around lines 3520 and 3523, add "12" and "52", so it looks like this:
And the last thing to do is to go to line 498 of the same file, and modify it so it looks like this:
So, again, you only need to add "12" and "52".
Instead of 12 and 52, you would modify "200" to "250" (or add "250" after "200"), and add "500" and "1000". To remove "All", you would need to remove all instances of "-1" from lines above, and also these two:
That should help.
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
And after a update this will not be deleted?
Unfortunately, it will be, Rik, since this is a custom solution.
The code will be replaced with the default code when the plugin updates, so you will need to do it after each update.
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