-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Query block: is not respecting perPage attribute in inherited context #40996
Comments
When the query inherits the context, it uses the WordPress "Blog pages show at most" global reading setting, and I believe this is working as intended. How to communicate that this is intended, when it is not expected, is something that needs to be solved 🤔 |
@carolinan if I'm understanding correctly, the |
That is my understanding.
|
Thanks for the issue @madhusudhand!
That is intended and should be that way, as we have explicitly set the Maybe the solution here could be to update the |
Thanks @carolinan @ntsekouras for the inputs and details of the behaviour 😄. This helps resolving my issue. |
Description
In the query block, when
inherit
is set totrue
, query block always shows10
posts and doesn't respect theperPage
value.Step-by-step reproduction instructions
The following query with
inherit: false
shows 3 posts.Same query with
inherit: true
shows 10 posts.Screenshots, screen recording, code snippet
No response
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: