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
Blog Posts Block: Load More Posts button doesn't appear even though there are more posts to load #404
Blog Posts Block: Load More Posts button doesn't appear even though there are more posts to load #404
Comments
|
Report on 2772505-zen |
|
I was able to replicate this also after another report in 19354723-hc. |
|
Another report in 20142631-hc |
|
Another case in 21234195-hc. |
|
Just had this issue in 3037601-zen / 21670415-hc I've done some pretty extensive testing on this, and can reproduce the issue as follows: Make 60 posts (using a plugin such as FakerPress) Create a Blog Posts Block with Load More enabled in Display Settings. When changing the number of items, clicking Load More eventually stops loading posts and are capped as follows: Number of Items - 5, posts are capped at 30 Number of items - 10, posts are capped at 40 Number of items - 11, posts are capped at 33 Number of items - 12, posts are capped at 36 Number of items - 13, posts are capped at 39 Number of items - 14, posts are capped at 42 Number of items - 15, posts are capped at 45 Number of items - 16, posts are capped at 48 Number of items - 17, posts are capped at 48 Number of items - 20, posts are capped at 40 As you can see, there appears to be a direct correlation with the number of Items entered, so that the total number of posts to be displayed using "Load More" is evenly divided by the number of items entered. Any remainder posts are not displayed. There are a few exceptions to this, such as when items to be displayed are 5, 10, or 20, which appears to have a hard cap at 40. This issue occurs regardless of theme, or using Calypso/WP Admin dashboards. |
|
Another report in 21211534-hc The user has 38 Posts and the Blog Post Block set to display 5 Posts at a time. They stopped loading at 25 and the Load More button disappeared. It kept stopping at a random number of Posts no matter how many were chosen to load at a time. |
|
6889940-hc |
|
3262479-zd-woothemes |
|
3282681-zd |
|
3329555-zd |
|
+1 |
|
another report: 25108946-hc and 3432130-zen |
|
Looks like there are a few related issues open, but this one has the best number, so, noting this case: https://wordpress.com/forums/topic/cant-see-my-older-post/#post-3583034 |
|
We have another case here: Any idea who we need to ping on this? |
|
Each press of the "Load More" button appends another ID to the exclude parameter, and the page number keeps getting increased too. Because both mechanisms are being triggered, the "what's the next URL?" is probably short-circuiting at approximately half the number of posts. (I set the number to show per page to 1 to study the incremental behavior, and specifically the HTTP request parameters.) If the |
|
I proposed a workaround in #628 but the full, correct fix might be a little more involved. |
|
Thanks for that @soatok . I ran into another case here today: |
|
Another report. 3591685-zen. |
|
Another one at 3602566-zen |
|
Another case in #26727364-hc and there are similar reports in #438 and Automattic/wp-calypso#48598 |
|
Considering cases keep coming in, we know what's causing it, and have a possible fix for it, what's blocking Automattic from applying the fix? |
|
Another report on #26984312-hc |
|
🎉 This issue has been resolved in version 1.18.1-alpha.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
|
🎉 This issue has been resolved in version 1.18.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
|
I'm glad to see this fixed. Final question: What's the usual Github Release -> Patch Deployed timeline for WordPress.com users? (i.e. when can we expect to see this fixed?) |
|
@soatok I'll update this thread once you can expect to see the fix on WordPress.com. |
|
Just noting that another report happened in 27164170-hc on WordPress.com |
|
One more report on 27165318-hc (follow-up 3673082-zen). |
|
Yay! Thanks! We'll need to follow up here once that's out: |
|
Awesome news on this! Thanks for the work for a resolution. Noting to follow-up with 3674661-zd-woothemes once this is live on WP.com |
|
Excited to follow up here, too: https://wordpress.com/forums/topic/how-can-i-scroll-all-the-way-back-to-start-of-blog/#post-3625181 |
|
Will need to follow up here as well: 3685981-zen |
|
Also reported in https://wordpress.com/forums/topic/free-blog-not-showing-oldest-posts/ Noting here so we can follow up |
|
I'm working on getting this fix synced downstream to WP.com. We'll need to land this PR first: #677 I'll update this issue as I have more info on timing. |
|
Thanks @dkoo . We're mostly noting issues so we can follow up with the users once it's out. 🥳 |
|
Opened a PR to pull these changes into WP Calypso: Automattic/wp-calypso#49493 |
|
Just to close the loop on this, the Load More fix has been deployed to WP.com. (It introduced some more regressions, but that's for another time. 🤣) |


Describe the bug
User is using a blog post block to display posts to 5 posts at a time. The Load More button does appear as expected for the next 5 posts, but it doesn't seem to appear after the 2nd time even though there are more posts.
When I tested this on my own site, at a certain point when trying to click on the Load More button for more posts, the Load More button will stop appearing, even though there are still more posts that can load.
Screenshare/Screenshot
https://d.pr/i/AjoWdA
https://d.pr/i/ADm2an
To Reproduce
Steps to reproduce the behavior: I tested this on my own site: https://susanjane.blog/testing-blog-posts-block/
Load More Poststo load next 5 posts, then again, and then again.BIRTHDAY BOOK CLUBwhich is not the last post published (there are more before this). You won't see theLoad More Postsbutton, however, there are 12 published posts before this post, so theLoad More Postsbutton should appear to display more posts.Expected behavior
The Load More Posts button should appear at the bottom to load the next 5 posts until there are no more published posts to display. For Reference, on my site, the last published post should be titled
The Coolest HairThe text was updated successfully, but these errors were encountered: