Skip to content

Query loop: Clarify the Max page to show setting #63028

@afercia

Description

@afercia

Description

Noticed while working on #63020

In the Query loop block, the 'Items per page', 'Offset', and 'Max page to show' settings are grouped together.
Currently, they're in a popover that opens from the block toolbar. In #63020 they will be moved to the Inspector panel.

Regardlessof their overall placement, I'm not sure these settings should be grouped together.

  • 'Items per page' and 'Offset' are more related to the Query properties.
  • 'Max page to show' is more related to the Pagination links.

As a user, the 'Max page to show' setting isn't immediately clear to me. I'd tend to think this setting should be better placed, probably in its own section as suggested also by @carolinan
Also, the description:

Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).

doesn't clearly explain this setting is about the pagination links. While 'pagination' may be a technical term to avoid, I'd think this setting should be better explained.

Nnte: in #63020 I'm fixing also a setting name typo where I guess 'page' should be plural 'pages' -> 'Max pages to show'.

Step-by-step reproduction instructions

  • Add a Query loop block > Start blank > Title & date.
  • Click 'Display settings' in the block toolbar.
  • Note: after Make usage of the settings icon more consistent #63020 these settings will be placed in the Inspector panel.
  • Observe the 'Max page to show' setting is grouped together with 'Items per page' and 'Offset'.
  • Observe both the setting name and its description don't clarify very well this setting is related to the pagination links.

Screenshots, screen recording, code snippet

Screenshot 2024-07-01 at 15 41 32

Environment info

No response

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Design FeedbackNeeds general design feedback.[Block] Query LoopAffects the Query Loop Block[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions