Skip Navigation

[Resolved] Custom Search Box With Results On New Page

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

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 4 years, 8 months ago.

Assisted by: Waqar.

Author
Posts
#1863943

Tell us what you are trying to do?
I would like to display a search box only with custom fields sorting. The search box would then display results on a different page. I would not like any of the views to display on the same page as the search box. Similar to this page letsrent.ca
Is there any documentation that you are following?
no
Is there a similar example that we can see?
Similar to this page letsrent.ca and hidden link (Check the sidebar)
What is the link to your site?
dev.letsrent.ca

#1864295
search-form-page.png
search-results-page.png

Hi,

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

It is possible to show the search form and the search results from a single view on different pages, using these steps:

1. Please create a new page, for example, "Search View page". The role of this page would be to hold the post view so that it can be created now and edited later.

On this page, you'll create a full post view with the search form and the results.
( ref: https://toolset.com/lesson-placement/lesson-placements-1621261-1622283/ )

2. Next, please create a new page, for example, "Search Results page". The purpose of this page would be to show only the search results from the view, created in step 1.

On this page, you'll insert the "View" block and select the view created in step 1 to show as the existing view. And in the block's custom search settings, you'll select the option "Only the search results".
( attached screenshot: search-results-page.png )

3. After that, you'll create a new page, for example, "Search Form page". On this page, only the search form from the view will be shown.

You'll insert the "View" block on this page too same as in step 2, but this time you'll select the "Only the search form" option in the block's custom search settings. You'll also specify the page, where the search results should be shown.
( attached screenshot: search-form-page.png )

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

regards,
Waqar