I want to modify the maximum number of results shown per page and in total for a view, and do this while using "Pagination enabled with manual transition and AJAX". I have used this documentation as a guide (https://toolset.com/forums/topic/view-newest-100/) and it works well when doing page reloads, but when using AJAX it breaks when moving beyond the first page.
Is there something that I can change in the code, or another method for achieving this? Thanks!
Hello and thank you for contacting Toolset support.
I just tested the custom code on a test site and the solution works for AJAX too. Can I take a look at the view and the custom code that you are using? Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **
It turns out that the problem was with how I set up the snippet within the Code Snippets plugin that I use. I had set it to only work on the front end, but apparently (perhaps obviously, in hindsight) AJAX pagination needs admin/backend access. Once toggled, it works fine.
Sorry for the trouble! I'll be sure to test that setting for any future snippets that I create.