jhonn0
Forum Replies Created
-
Thanks for your response @dcooney
I actually now seem to be having some success after removing the scroll_distance attribute from my shortcode (it was set to “0”). I’ll continue to observe and see if the behavior returns.
Curious – is there any chance of a compatibility issue with my WordPress version? This site uses 5.3, with the most recent ALM version.
I did once have a javascript Ajax complete function that was only there to hide the “Load More” button until after the initial 10 posts load. Disabling that script didn’t seem to do anything to alter the behavior, though.
Thank you.
- This reply was modified 6 years, 6 months ago by jhonn0.
Got it! But just to be clear, does it sound like an error that the infinite scroll feature isn’t working but the button does? Or is that part of what Preloaded would be for?
Thank you, this was a big help.
The catch is that the additional posts do not load via infinite scroll, only with a load-more button; the main problem there is that when the page loads, before the posts load you see that button just sitting there at the top. See hereIs there anything I should look out for to change that?
Otherwise, I misunderstood the use of offset… by removing it I was able to load the correct/most recent posts.
Apologies for the delay; the page can be found here.
Hope it can help. It is still loading the wrong group of posts, and all 11 at once — only 7 should load when the page loads, and 4 more when you scroll to the bottom.
I did notice that some functionality improved when in Settings I changed from Infinite Scroll to a “Load more” button, in that clicking the button did load more posts every time you click it, but that seems to disregard that the shortcode has an offset=7 and posts_per_page=11.
Thanks
Thanks for your attention — I’ve been testing this only locally so far, but will try to get it up on a dev server this evening.
However, I did remove the previous loop from the code. Funny enough, while trying things out, I included the previous WP loop in both the page code and the ALM Repeater Template to see what would happen. It still loaded all 11 panels as 1 post, but they were the correct/most current posts.