[Resolved] Pagination not being updating with Ajax
This support ticket is created 6 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I did some tests but I couldn’t reproduce the issue you experienced.
Could you share your module with me so I can test it? In which section of the View did you add pagination and which shortcode did you use?
I tried to import your Views but the import failed.
If you agree, I’d like to create a sandbox test site where you can reproduce the issue so we can fix it.
from the developers' team they say that the pagination controls that are not being updated are not ours, but WordPress native pagination controls, which live outside of the WordPress Archive outcome.
Views cannot control the native WordPress Archives pagination controls. This is why we add our pagination controls, and why we have theme options for some themes to remove the native pagination controls from the archives.
So Views is not supposed to update the native pagination when a WordPress Archive uses AJAX. When we do not use AJAX it gets automatically affected because we do modify the main query that generates those controls. But when using AJAX we would not even know how to target and update those native pagination controls, at all.
We can not either just remove the native pagination controls. Each theme renders them differently, and we can not target all those different ways at once.
You can try the following:
- Include pagination controls from the WordPress Archives in the WordPress Archives
- Use CSS to hide the native pagination controls.
Let me know if this helps you or if you need further assistance.