Skip Navigation

[Resolved] Integrating two search views?

This thread is resolved. Here is a description of the problem and solution.

Problem:

I have 2 search views. One is on the home page and is a 2 dropdowns and a search button. This takes the user to the search page where results are displayed. However, I need this page to have a different style of search filter on the left hand side so I have created a second one with checkboxes replacing the dropdowns. The issue is that as this is a second search view it does not update the first views results.

Solution:

You just need to make sure both views are passing the same URL parameter name.

See the solution here:
https://toolset.com/forums/topic/integrating-two-search-views/#post-1071223

Relevant Documentation:

This support ticket is created 6 years, 3 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 2 replies, has 2 voices.

Last updated by davidR-12 6 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1070222

I have 2 search views. One is on the home page and is a 2 dropdowns and a search button. This takes the user to the search page where results are displayed. However, I need this page to have a different style of search filter on the left hand side so I have created a second one with checkboxes replacing the dropdowns. The issue is that as this is a second search view it does not update the first views results. Currently I have a second search view results on the page, but then the original search results are also present. How can I integrate the 2 search filters so that I only have a single results listed on the page?

hidden link - Home page filter
hidden link - Search page filter
regards,

David

#1071223

Dear David,

You just need to make sure both views are passing the same URL parameter name.

Fro example, in the Home page hidden link
display only the custom search form of view A, after user submit the form, it will pass URL parameter to the target page:
hidden link
In above page, display the view B, both search form and search result.

I have checked the URLs you mentioned above, but it is password protected, if you need more assistance for it, please provide the password too.

#1071548

Hi Luo,

Thanks for your help. That was so obvious, why did I not think of it, just needed to delete one of the result shortcodes.

Regards,

David