Create pagination for custom query
S
SiteMeta Team
I'm on a project that displays advanced queries. If the Breakdance loop builder could add pagination for custom queries instead of just the template archive, that would be great.
Image demo:
Louis Reingold
We support pagination for custom queries right now.
If you want a custom query with pagination, use the Post Loop Builder / Posts List on a page that isn't an archive page.
If you want to use a custom query, don't put it on an archive page - that is a misuse of archives.
Jay Carrer
Louis Reingold: Any news on when the issue in using pagination with custom queries and a specified offset will be fixed? If in a post loop builder I set an offset of two and use for example infinite scrolls, when the next content is loaded two duplicate ones always appear. I already reported the bug a couple of months ago.
M
Miguel Cravidão
Louis Reingold: Hi,
Thanks for your reply. Maybe you can help me with some specific cases. Perhaps, I'm taking the wrong approach.
I've situations where I want to highlight posts before starting with the default post loop. I do that by creating a query for, let's imagine, two posts and then I start with another post loop with an offset of 2 posts. This is the element I want to paginate.
I've attached two images to explain a usage example.
How do you suggest to do something like this?
On the third attachment, we have four posts with that presentation plus the remaining posts. We thought about using the "injection" feature, but then we can't control each item width/colspan individually.
t
tamaskantal
Louis Reingold:
https://szinhaz.net/tag/interju/
On this page I'm using an older version (1.3 alpha) where the pagination works for archives and it was very handy because with so many article like this page has, it would be impractical to scroll into eternity. I'm wondering what you mean by misuse? How else should I have achieved this with pages?
Louis Reingold
You can get excellent help on the below use cases from our community at https://www.facebook.com/groups/breakdanceofficial, or reach our team directly at support@breakdance.com.
M
Miguel Cravidão
Totally necessary.