Sauter la navigation

[Résolu] Using standard pagination with Views?

This support ticket is created Il y a 5 années et 1 mois. 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 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Marqué : ,

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Luo Yang Il y a 5 années et 1 mois.

Assisté par: Luo Yang.

Auteur
Publications
#1372743

Tell us what you are trying to do?
I have a requirement that I need to deliver this site as a static site. This works in all aspects except that Views pagination always uses a query string and so requires a back end whereas WP would append a page/2/ for the second page which would work fine for a static site.
(1) Is there a way to use the WP style?
(2) Is there another way to achieve a non query string way like a hook so I can parse out a page/2/ type scenario. (E.g. /wpv_paged/2)

Is there any documentation that you are following?
Couldn't find anything.

What is the link to your site?
This page has a Next -> at the bottom.
WP version -> lien caché
Static version -> lien caché

#1372895

Hello,

There are not both built-in features as you mentioned above, for normal post view, to use the pagination, the URL parameter "wpv_paged" is required.

You can add a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

Our developers will evaluate it.

And in Views WordPress archive, you can setup WP style pagination with shortcodes, for example: [wpv-pager-archive-nav-links]
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-pager-archive-nav-links