Saltar navegación

[Resuelto] Pagination shows many pages without shortening / shorten / summaries (80+ pages)

This support ticket is created 4 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zona horaria del colaborador: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 10 respuestas, tiene 2 mensajes.

Última actualización por Narindo 4 years, 7 months ago.

Asistido por: Luo Yang.

Autor
Mensajes
#2223527
Screenshot 2021-11-13 at 00.09.11.png

I am trying to:
Use pagination LINKS produced multiple numbers instead of shorten it

Link to a page where the issue can be seen:
enlace oculto
enlace oculto (this one is live)

I expected to see:
less pagination pages

#2223831
pagination3.JPG

Hello,

You can edit the page you mentioned above:
enlace oculto
Find and select the pagination block, customize it to what you want, see my screenshot pagination3.JPG

More help:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-344030

#2223873

Hello,

Many thanks, I already wondered what that was. It is confusing, because when you 'add' pagination it shows this in the editor:

enlace oculto here it is already 'nicely' automatically skipped.

When I follow the settings, I don't know how to get the 'same results' as the one in the editor:
enlace oculto
Settings: pages to skip 3, number preceding 1.

Because the pagination should be 'dynamic' depending on how many results we get. Is it possible to display the same as it is displayed in the 'editor' view which does it automatically depending on the results?

#2223879

I can not see your screenshots, please upload them directly to our forum.

#2223885
Screenshot 2021-11-18 at 08.57.47.png
Screenshot 2021-11-18 at 08.59.58.png

here you go.

#2223903

option "Pages to Skip" fill value: 10 or larger number
option "Number of Preceding and Following Pages" fill value: 1

#2223971
Screenshot 2021-11-18 at 10.27.07.png

Thank you, but this is what I get. It would be good if it is possible to have a 'shorter' pagination. Or is this not possible? (if we put in hard values like skip 10 pages, this means that small and large results will get the same treatment rather than: 1,2,3 ... 150 ... 301, 302, 303. Right?

#2224455

As I mentioned above, you can use higher number in option "Pages to Skip", for example, the total page is 200, you can use value 100

#2226331

Thank you, I guess were are repeating to each other. I understand now that what I was requesting: automatic (?) skip/next pagination is not available. If I hard code the number of pages in 'skip' value, that wouldn't work for my situation since it will depend on the search results. Some search results only return < 10 pages and some return 200+ pages, so if the skip value is 100, it wouldn't be flexible to accommodate this.

Thanks, didn't know this limitation previously.

#2226455

You can try to setup "Pages to Skip" value as empty, then it will skip all other paginations.

#2226777

Thanks, I managed to do as you said, leave 'skip' with no value, but the 'text for next link' with value 1.

Now the pagination starts with 1,2 ... 52. That works for me, it shows how many pages are there in total and they can easily go to the next page if needed.