-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Query Loop Block: Adding Multiple Query Loop Blocks with the option to not repeat posts already shown by previous Query Loop on same page #40903
Comments
As part of the nineteenth call for testing for the FSE Outreach Program, the following related feedback came in that touches on the problem described above when using the "offset" pattern bundled with the query loop:
It makes me wonder if we should remove this offset pattern until the above is resolved! |
This would also be helpful for sites with a lot of content that use query loops to surface posts from different types of queries (latest, taxonomy terms, etc). The alternative is a fragile approach to offset various queries to attempt to skip posts displayed by previous queries. But that falls apart quickly when mixing different terms and taxonomies with varying degrees of overlap. |
To add to this, it would be great if a Query Loop Block on the Single Post template could exclude the post that is currently being viewed from appearing in the Query Loop. This feature was requested by a WordPress.com customer. |
+1 |
No progress made on this front. Punting from 6.5! |
Also struggling with this issue as I'd like to 1) use different styles/attributes for the first query result 2) insert content in the middle of the query loop list and 3) include paging. My "solution" was to run the main query three times and hide sections of the list via css, but obviously this is not ideal. |
Hi folks, |
What problem does this address?
I have recently been playing around a lot with FSE and the Query Loop Block and became somewhat frustrated when trying to go wilder and add more than one Query loop Block to show my posts with different styles.
What is your proposed solution?
At the moment we can add multiple Query Loop Blocks and style them separately but, if they all follow the same settings, they will show the same posts.
It would be interesting if there was an option to not repeat posts that are already shown by previously added Query Loop Blocks.
This is possible for example, with the Post Carousel Block and the Blog Post Block, which never show repeated posts.
Yet, in the case of the Query Loop, I believe it would make sense to have this set up as an option.
This would allow users to create more adventurous styles for their websites.
For example, I built this example by manually choosing settings until I got the desired result:
Which isn't a practical approach for websites with a large number of posts.
The text was updated successfully, but these errors were encountered: