Navigation überspringen

[Gelöst] Items Per Page filter for grid view

This support ticket is created vor 2 Jahre, 6 Monaten. 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 -

Zeitzone des Unterstützers: Asia/Karachi (GMT+05:00)

Dieses Thema enthält 3 Antworten, hat 3 Stimmen.

Zuletzt aktualisiert von Waqar vor 2 Jahre, 6 Monaten.

Assistiert von: Waqar.

Author
Artikel
#2527369

Tell us what you are trying to do? Add a select for users to choose how many items per page they would prefer - 12, 24, 48, All.

Is there any documentation that you are following? Standard Views docs

Is there a similar example that we can see? na

What is the link to your site? versteckter Link

#2527643

Nigel
Unterstützer

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+01:00)

Screenshot 2023-01-05 at 08.58.37.png

Hi there

The pagination setting is essentially hard-wired into the View (screenshot of legacy UI) and there is no way to modify the items per page setting dynamically from the front end in the way you describe.

It may be possible to engineer a custom solution, because there is an API filter that can be used to modify the View settings dynamically: https://toolset.com/documentation/programmer-reference/views-filters/#wpv_view_settings

$view_settings contains, amongst other things, details of the pagination items per page setting.

But you would need to set up the front end control to provide the options yourself.

#2528137

That's something Toolset needs to address. The settings for a view should include this option. Items per page shouldn't be "hard-wired". It should be a user choice.

#2528283

Thanks for writing back.

As Nigel mentioned, the feature to offer an 'items-per-page' selection from the front end is not currently available.

With Toolset's new feature development paused ( ref: https://toolset.com/2022/06/whats-next-for-toolset/ ), it would be difficult to predict how long will it take for a feature like this to be included.

So for now, I'm afraid, the only option to implement a selection like this is through custom code. For more personalized assistance around custom code, you can also consider hiring a professional from our list of recommended contractors:
https://toolset.com/contractors/