Skip Navigation

[Resolved] Multiple view in a page

This support ticket is created 2 years, 6 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 2 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#2407185

Hello,

I am developing a site where I need to list a set of defined cpt (to have the comparator form).
I made 2 views on the same cpt.but with different parameters and filter values but it doesn't work as I want.
Did I make a mistake?
The URL is :hidden link

Also, is it possible to display nothing when on the default value of the selection?

Thanks in advance
Benjamin

#2407507

Hello,

I have checked the URL you provided above:
1) The first post view is passing URL parameter "wpv-wpcf-nom-du-semoir"
2) The second post view is passing another URL parameter "wpv-wpcf-nom-du-semoir-2"

In your case, you can use [wpv-conditional] shortcode to check above URL parameter values, then display the search results.
See our document:
https://toolset.com/course-lesson/creating-a-custom-search/#hide-the-search-results-until-the-first-search

More help:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-conditional