I just found out there’s AJAX pagination (I never saw it before because I usually leave the “Query” setting set to the default “Main Query”, which, for some reason, does not show the “Exable AJAX” option.
So I’ve set Query to Post, and enabled AJAX pagination.
However, nothing changes on the front end…clicking different page numbers in the pagination element continues to refresh the page.
There was a conflict; I have it (sort of) working now. The biggest issue is that while it loads new posts via AJAX, it leaves the user at the bottom of the list of posts, forcing them to manually scroll back up to the top to see the new posts. Is there any way to have automatically scroll back to the top, or at least have a callback to we can have our own code do this?
I tried adding an event handler on the page navigation click, but as soon as the AJAX loading is complete, the handler is no longer initialized.