Query Loop Block doesn't accept 0 items per page anymore #59912
Labels
[Block] Query Loop
Affects the Query Loop Block
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
[Type] Bug
An existing feature does not function as intended
Description
Query Loop Block doesn't accept 0 items per page anymore, when 0 is entered it is automatically reversed to 1.
Step-by-step reproduction instructions
Add QUERY LOOP BLOCK
choose Start Blank>Select a variation to start with>
any
Then BAR click on display settings
ITEMS PER PAGE [3 by default]
at the bottom is written
Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).
But when trying to change to 0, it goes back to 1.
This appeared since the addition by default of the pagination and interactivity allowing to go to the next pages without refreshing the page which is great, but the possibility to display all the posts with appropriate filters seems to still be a necessary option.
Screenshots, screen recording, code snippet
No response
Environment info
WP 6.4.3
Gutenberg 17.9.0
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: