Skip to content
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

Display less numbers at pagination or choose how many to display (Query Block) #55146

Closed
gfarma opened this issue Oct 7, 2023 · 1 comment
Closed
Labels
[Block] Query Pagination Affects the Query Pagination Block - used for pagination within the Query Loop Block [Type] Enhancement A suggestion for improvement.

Comments

@gfarma
Copy link

gfarma commented Oct 7, 2023

What problem does this address?

I think the current display of numbers at pagination is a bit confusing.
image
5 numbers maybe are too many.
Btw with the current style at mobiles sometimes the pagination block needs 3 rows to diplay.
image

What is your proposed solution?

I think something like this is better
image
Or maybe to let the user choose what type to display front end (1..234..5 or 1..2345..6 etc)

@skorasaurus skorasaurus added [Block] Query Pagination Affects the Query Pagination Block - used for pagination within the Query Loop Block [Type] Enhancement A suggestion for improvement. Needs Decision Needs a decision to be actionable or relevant and removed Needs Decision Needs a decision to be actionable or relevant labels Oct 8, 2023
@t-hamano
Copy link
Contributor

t-hamano commented Oct 9, 2023

Hi, @gfarma,

I think the feature you want was implemented in #51216. You can set how many page numbers can be set before and after the current page.

number-of-links

Number of Links = 2 (default)

number-of-links-2

Number of Links = 1

number-of-links-1

This feature is part of Gutenberg 16.6, so it's not yet available in WordPress 6.3. You can use it by activating the WordPress 6.4 Beta or the Gutenberg plugin version 16.6 or later.

Therefore, I would like to close this issue as resolved.

@t-hamano t-hamano closed this as not planned Won't fix, can't repro, duplicate, stale Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Query Pagination Affects the Query Pagination Block - used for pagination within the Query Loop Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants