Tagged: infinite scroll
- April 18, 2020 at 3:57 pm #6735
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?April 19, 2020 at 10:43 am #6754
@mayormckraut: I will inform the development team regarding the issue and let you know soon.
TikaramApril 20, 2020 at 12:56 am #6764
@mayormckraut: Please post in your site URL as well so that I can check for the issue.
TikaramApril 27, 2020 at 6:38 pm #6843
Wish I could. It’s only on a local machine at the moment.May 8, 2020 at 8:01 pm #6953
I will add this:
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.May 14, 2020 at 3:31 am #7256
@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.
- You must be logged in to reply to this topic.