I have a custom archive page for news posts that I want to load 10-ish posts, then 10 more when you scroll to the bottom without having to click ‘load more’ or a navigation number or something like that. Thought this would be easy but turns out it’s not. Maybe I’m missing something obvious.
When I turn on “infinite scroll” (and a loader animation) it looks like it tries to load more posts but after a couple tries comes up with nothing?
When I have the “posts per page” at -1 it will load everything perfectly but I want it to load in portions instead of the whole thing at once because that slows down the page.
I’m on Bricks 1.9, no other notable settings for the query I think. Browser console gives this error
"{“code”:“rest_no_route”,“message”:“Geen route gevonden die overeenkomt met de URL en aanvraagmethode.”,“data”:{“status”:404}}
(“No route found that matches the URL and request” in Dutch)
I’m using a Posts query loop set to show 3 posts but also infinite scroll. Three posts display initially, but my client keeps reporting no more Posts load, which I confirmed. I just tried changing the Ajax Loader Animation setting to Default (it was set to None). More posts load when testing infinite loading after the cache is cleared, but this was the case before. I’ll have to recheck it later.
Can you please update to Bricks 1.9.1 and see if the issue persists?
If so, would you be so kind as to send temporary login credentials and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase?
I checked again this morning, and the posts were not loading, then it occurred to me that I had a popup firing on my posts page. I excluded the popup on the page, and now the posts load properly. Some kind of conflict?
Login sent!
I’m waiting to upgrade to 1.91 on this production site.
Somehow today it is working. I guess there was just a conflict with the litespeed plugin yesterday but I could not find out why this plugin makes sometimes trouble with bricksbuilder.