-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load More Button loads initial posts from Query Loop instead of more (unique) posts #5
Comments
A bit more information - not sure if we're going to want to address this in plugin functionality, or just add this to the readme. I was able to resolve this issue by adjusting the settings on the Query Loop. With "Inherit Query from Template" enabled, we see the issue: If I disable "Inherit Query from Template" and manually set the query parameters, the plugin functions as expected. |
We're running into similar issues for Regenerosity. See below for Beth's description
@geoffguillain or @tiagonoronha do you think this is something we should try to solve before we do our final submission for this plugin to be open sourced? |
@mlaetitia or @geoffguillain pinging again on this one too. Same as the other issue, I can make this a dev request if so. Thanks! |
I've added a potential fix for this issue in #14 I also noticed a second issue that occurs when there's multiple query loop blocks on the page, even if only one of them is using the load more button. The load more button will load posts from whatever the first query block is on the page. For example, if the first query block is for pages, and the second are posts, using the more button to load more posts will add pages. I believe it's either related to Glynn's #12 issue where the params are not properly loaded, or the block/plugin is not fetching from the correct query id. |
I tested multiple query loops initial url = https://pinkcrab.gq/some-test/
Inital page load Clicked load more on product Clicked load more on post However if i access |
I've merged a fix for this and it's now live. |
Issue Description
Clicking the Load More button results in the same set of blog posts being loaded a second time, rather than new / additional posts loading below the initial query loop.
This issue can currently be seen on the blog on https://crussen-production.mystagingwebsite.com/
Steps to reproduce
What you expected to happen
I expect the "Load more" button to load another set of 6 blog posts (or if less are available like in our case). It should load the remaining blog posts.
What actually happened
When I click the "Load more" button, it loads the same 6 initial blog posts again.
The text was updated successfully, but these errors were encountered: