Query Loop: "Per_page" value is being appended to "offset" on the backend fetch call #56650
Labels
[Block] Post Template
Affects the Post Template 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
When using a query loop block on a vanilla WP with Gutenberg plugin activated (on v17.1.3), the query loop often returns empty. If you dig into the REST API calls in your browser, you can see that the
offset
value is actually being passed theper_page
+offset
, so instead ofoffset=0&per_page=12
, you end up withoffset=120&per_page=12
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
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: