Seems related to this post now that I looked around, but correct me if I’m wrong please. Thank you!
https://wordpress.org/support/topic/query-id-2/
Ok… so it’s definitely because there are two query loops on the page. Once I temporarily remove the first “sticky” query loop, the load more button for the second query loop works just fine. Thoughts one a workaround for this to exist?
3 STICKY POSTS
6 NON-STICKY POSTS
[ LOAD MORE BUTTON ]
Hey @joeshock thanks for reporting this! I just wanted to let you know I’m investigating what we can do here to support multiple queries on the same page.
I’ll update this thread with news as soon as I have it.
Good morning @joeshock
v1.0.15 now released which should resolve this for you, if you still have a conflict check in the page markup that your two query blocks have different queryID set.
Thank you, Tom! I’ll give it a go!
Hey there, @tommusrhodus!
This adjustment definitely made things better but still not perfect in my situation. Initial click on the “load more” button shows only a couple more additional posts, then when I click it again, it loads the full next page and so on.
Looking in the source code per your recommend it seems like both query loops are using the same ID. Is there a way I can adjust ID that somewhere?
Hi @joeshock!
I’ve been testing this a bit today. Can you confirm that you have permalinks set to something other than “Plain” in Settings->Permalinks? I’m running into issues with multiple queries when the permalinks aren’t “pretty”.
Is there a way I can adjust ID that somewhere?
It’s very easy to end up with duplicate queryID’s as it’s carried over on copy/paste, for example. Unfortunately, the queryID is not exposed in the block settings. You’ll need to switch to Code View and look for the queryID attribute on the block:
https://share.cleanshot.com/tK8ZkMb6
Thanks! Permalinks are set to:
/news/%postname%/
It looks like it’s working all of a sudden though, so my plugin auto-update must have pulled your latest and it’s working. Version 1.0.16
Thank you!
-
This reply was modified 8 months, 1 week ago by
joeshock.
-
This reply was modified 8 months, 1 week ago by
joeshock.
Excellent @joeshock – so glad it’s working. Please reach out if you come across anything further.