Skip Navigation

[Resolved] Blocks – Views in a page – How to display different views per categories?

This support ticket is created 4 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Franck 4 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1417993

Hi,

I created a page listing Products.
These Products belongs to different Categories.
I would to display different views of Products sorting them by categories.
That is to say I need to create a View using Blocks listing only one category of a particular CPT.
Is it possible? How?

#1418193

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Using Blocks its not possible for now to filter the view using shortcode attribute but I'll report to our internal ticket where we are handling this.

For now, you need to use the Toolset Views 3.0.1 version and you need to create a classic view to achieve your goal to filter your posts with different categories. (In this case I'm assuming that you want to use same view to filter your posts with multiple categgories).

For example:

[wpv-view name="view-name" taxcolor="red"]  

[wpv-view name="view-name" taxcolor="green"]

More info:
https://toolset.com/documentation/user-guides/views/passing-arguments-to-views/#controlling-the-filter-with-shortcode-attributes

#1418237

Thanks Minesh for your help! 🙂