WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.32k stars 4.12k forks source link

Query Loop: Make users aware that Query Loop might be overriding "Posts per page" setting #64527

Open alaczek opened 4 weeks ago

alaczek commented 4 weeks ago

What problem does this address?

We have "Posts per page" setting in Settings > Reading, which can also be accessed in the Editor, when editing template such as home.html:

image

Query Loop block can override that setting though by disabling "Inherit query from template" option in block settings. In that case a custom "Posts per page" setting is available on the block level. This is confusing for the customers, because:

https://github.com/user-attachments/assets/c9604802-f4cc-42e4-a6c8-5877b7ed4e45

What is your proposed solution?

I'm not quite sure what the solution is. Could the global and the custom "posts per page" settings be aware of each other, so that we can let users know that their settings are being overridden?

Perhaps we could include a message here? image

Another thing that might be useful is making the Query Loop's block "Posts per page" setting more visible by putting it in the block settings in the sidebar too?

nirav7707 commented 3 weeks ago

Do we need to added static info. or need to compare both post per page, and only display notice if both are different ?