Query loop pagination
-
Hi there!
I’m redesigning my website, originally created with a classic theme and a popular website builder, using only the block editor and twenty twenty-four theme. The learning curve has been steep, so I’m likely missing something here…
I’m using the query loop to display posts. I’ve played around with pretty much all patterns and am confused with the following: grid and offset patterns (ie, patterns displaying the posts in multiple columns) only seem to support pagination per post template, rather than per pattern. Take a look at these setups:
- ‘Grid of posts featuring the first post, 2 columns’ – https://photos.app.goo.gl/rtSqpQggWTrofiMr6
- ‘Offset’ – https://photos.app.goo.gl/ycaqQ6vL2eqV2Weq6
Because there are two query loops per column here, there are also two post templates and hence two pagination blocks (!). My desired behavior would be one pagination block per pattern.
I also noticed that the pagination URLs of grid patterns in general result in ugly URLs such as: /?query-321-page=2 , /?query-321-page=3, /?query-322-page=2, etc. One column patterns result in familiar pagination URLs such as /page/2/, /page/3/, etc.
I read the documentation, namely:
A Pagination block is included by default if you choose a correct pattern in a Query Loop block. That said, you can also insert it manually when needed.
What is a “correct pattern”? How can I manually insert the pagination block for grid and offset patterns?
What about the pagination URLs – is there a workaround here?
- You must be logged in to reply to this topic.