-
Notifications
You must be signed in to change notification settings - Fork 1
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
wp:query-pagination block doesn't paginate the main query #18
Comments
Proposed solutionThis is similar to #11. The PHP for the prototyped solution is fairly basic. In query-pagination.php add a new function
In CSS styling for the Fizzie theme could be something like this:
|
Improved solutionI've found how to implement solutions for both this issue and #11 without having to change Gutenberg. I should be able to do this for each dynamic block that needs a few tweaks:
and possibly
The solution hooks into the e.g. For
|
…ssue #18 style the core/query-pagination block
…g render_callback functions with our own.
The solution that works for Gutenberg 9.5 no longer works with Gutenberg 10.0. |
On
Note: In this solution I didn't use the |
The query pagination block is now a lot better. Pagination's working fine. Issue should have been closed for Fizzie v0.3.0 |
The
core/query-pagination
block doesn't appear to work at present.For pages that should be using the main query, I would have expected the pagination to work using URLs with
/page/n
,where n is the page number.
I believe it should be possible to add this logic for when the
core/query-loop
block is the main query.ie When not within the
core/query
block.The text was updated successfully, but these errors were encountered: