I have an archive page that, depending on the circumstances, returns posts in either alphabetical or the usual reverse chronological order. When it’s using alphabetical order, however, Infinite Scroll loads the additional posts in the standard chronological order. Is there any way to get the plugin to respect the filtered query?
I have a different ‘pre_get_posts’ filter to only show posts where a custom meta field is set to either 4 or 5. Again, this works for the first page of posts. When the infinite scroll kicks it, it just starts loading posts using the default query. (all posts, reverse chronological order).
In short, Infinite Scroll always uses the default query for the archive and does not apply the filter. My posts per page is 18, and the second group of posts is the second group of 19 through 36 as if there was no filter applied.
@mayormckraut: I asked the development team regarding the issue. They have suggested me to ask you to disable the plugin completely and check the WordPress default pagination where you can select older post to select the older ones. If the older post works as desired by you the plugin must work accordingly. Let me know the result so that we can decide further.
Viewing 6 posts - 1 through 6 (of 6 total)
The topic ‘Infinite Scroll not using filtered query.’ is closed to new replies.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.