Skip Navigation

[Resolved] Two custom search forms for one view.

This support ticket is created 5 years 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/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by georgeK-5 5 years ago.

Assisted by: Waqar.

Author
Posts
#1619443
Custom_search_filters.png

I have a view (number 3) that has custom search filters. I want to display one filter above the result view (number 1) in the same page and the other filters in the widget area on the left side of the same page (number 2).

I have created a staged site URL to try to do that hidden link

Could you please guide me on how to accomplish that functionality.

Thank you for your prompt response.

#1620751

Hi George,

Thank you for contacting us and I'd be happy to assist.

I've checked the page that you've shared, but there was no content showing on it.

To achieve this layout you can follow these steps:

1. First, you'll create a post view with all the required search filters, as explained in this guide:
https://toolset.com/documentation/getting-started-with-toolset/create-and-display-custom-lists-of-content/

2. Next, in the content area of your page where you'd want to show this view, you'll place it with search form and search results.

This will give you sections 1 and 3 from your screenshot, but the search form will have all the filters.

3. Next in the sidebar widget, you can place a shortcode to only show the search form for this view, to get the section 2:


[wpv-form-view name="name of the view" target_id="self"]

Note: You'll replace "name of the view" with the actual view's name.

4. At this stage, your search forms in sections 1 & 2, will have all the search filters. You can use custom CSS code, to hide the unwanted ones from the content and sidebar areas, as needed.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1623759

My issue is resolved now. Thank you!