Skip Navigation

[Resolved] Search result on a seperate page

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

This topic contains 5 replies, has 2 voices.

Last updated by Waqar 4 years, 6 months ago.

Assisted by: Waqar.

Author
Posts
#1939297

Anonymous
Bildschirmfoto_2021-02-09_11-51-02.png

Dear Sirs,

I am looking for a solution to the following problem:

I have created a custom search with the View-Block, where can the visitor filter my posts and projects.

Now it should be so that when the user clicks on Show results, he is redirected to a separate page to display the results.
But I can't find a way to configure this.

The custom search should also be displayed on the other side.

Can you help me, please?

With best regards

Steve Zabka

#1940331

Hi Steve,

Welcome to Toolset support and I'd be happy to assist.

To achieve this, you can follow these steps:

1. The page where you've created the view, can be used to show the search results and the search form (let's call it Page A). You can easily change this page's title and the slug.

2. Next, you'll create a new page (let's call it Page B), where only the search form from the view will be shown, without any search results.

On this page, insert a "View" block and from the existing views, select the already created view.

From the view block's settings, choose "Only the search form" and also select the page on which you'd like to show the results which would be Page A.
( screenshot: hidden link )

As a result, when a visitor will use the search form inserted on Page B, the results will be shown on a separate Page A.

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

regards,
Waqar

#1940611

Anonymous

Hello Waqar,

Thank you for this quick solution, because I searched everywhere and couldn't get to this menu, where I could select the results page. And now I can do it this one, but I have another question:

What happens if I want to use the archive page as the results page (B) for the search instead of a page?

Page A = Search form
Page B = Archive Page (Posts)

#1942139

Anonymous
Bildschirmfoto_2021-02-11_13-09-42.png
Bildschirmfoto_2021-02-11_12-38-09.png
Bildschirmfoto_2021-02-11_12-34-11.png
Bildschirmfoto_2021-02-11_12-15-22.png
Bildschirmfoto_2021-02-11_12-15-03.png
Bildschirmfoto_2021-02-11_12-14-38.png

I found a solution for my problem to submit the filter options to the archive site.

You must create a blank page with the same name as the slug (projects). This ensures that the URL of the (Projects) page and the Archive page (Projects) are the same and the configuration is then exactly as you have already described.

If you now click on Submit, you will be forwarded directly to the archive page. You don't see the created empty page (projects), because the empty page (projects) has the same url as the archive page. That is it, what I search for my website: hidden link and I have solved this problem for me.

#hidden link -> Submit -> #hidden link = empty Site (projects)-> Forwarding -> #hidden link = slug (projects archive)

This is a solution that you should perhaps include in your documentation, as there are certainly other people who want to display their results on the archive page right away!

#1942203

Anonymous

Can you please include my solution in the Toolset documentation?

#1942229

Thank you for sharing your solution and it will surely help others with a similar requirement.

I'll also internally pass on your feedback about including this in the documentation.