-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fix broken pagination links #70
Comments
@scruffian @matiasbenedetto is this related to any of the work we've been doing on pagination? Anything we can use from there to help here? |
No, this is unrelated |
It looks like if you use <!-- wp:query {"query":{"perPage":5,"inherit":"true"},"tagName":"section","className":"front__latest-posts","align":"full"} --> |
The problem with this is that when you use |
That's a good question. It looks like the block query gets merged into the main query, but values in the main query will override the block values… I think that is intended. If you try this through the editor, hitting "Inherit query from template" turns off all the UI controls for taxonomies and per-page settings. |
Thanks for digging that up @ryelle. I'm pretty sure the code in |
This lets us use `inherit:true` for the `wp:query` blocks in the page templates. Without which we run into problems with pagination etc. See #70 for discussion.
* Use a filter to set posts_per_page for some categories This lets us use `inherit:true` for the `wp:query` blocks in the page templates. Without which we run into problems with pagination etc. See #70 for discussion. * Add explanatory notes in html comments Co-authored-by: Ian Dunn <ian@iandunn.name> * Rename the filter to override_category_query_args Co-authored-by: Ian Dunn <ian@iandunn.name>
It looks like all the uses of pagination are broken.
front-page/
template parts - "See all ..." links to/?query-page=2
instead of/page/2
. That might be a bug withwp:query-pagination-next
, or maybe we're using it wrong. See Restore "All Posts" header etc #55query-page
param instead ofpage/n
formatThe text was updated successfully, but these errors were encountered: