Skip Navigation

[Resolved] A front end menu/buttons to display 1 of 3 different Views; grid, table or list

This support ticket is created 5 years, 11 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 -

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

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 5 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1217273

Hi,

Please, I need your help.

I have a "Books" post type.

I built 3 different Views to display the books; a 4 columns grid, a list (1 column grid), and a table. All views have filters and are sortable.

For my archive page I want to have 3 little buttons to choose what view can be seen.

I have looked for information on how to achieve this but could not find it.

I can make it sort of work by adding the 3 different Views inside a Tabs but everytime the user sorts or filters the content the tabs reset to the default. Also, I would like to maintain the results of the filters the user applied.

Thanks,

Mauricio

#1217395

Dear Mauricio,

There isn't such a built-in feature within Views plugin.

In WordPress archive page, normal post view won't be able to work as expected, it will conduct some unexpected problems as you mentioned above:
everytime the user sorts or filters the content the tabs reset to the default.

It is recommended to use Views WordPress Archive to format the content:
https://toolset.com/documentation/getting-started-with-toolset/customize-post-archives/designing-an-archive-without-any-page-builder/

But one archive page can have only one Views WordPress Archive, and in one single Views WordPress Archive, you can choose only one layout mode, you can not display the results in 3 different layout mode.

And 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.