Skip Navigation

[Resolved] Pointing a custom search to an archive page

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

Problem: I would like to use a custom search View to display the search filters, then redirect the User to an archive page where the search results can be seen.

Solution: It's not currently possible to split up the search filters and results in a WordPress Archive. Use a custom search View or custom code.

This support ticket is created 6 years, 4 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by Christian Cox 6 years, 4 months ago.

Assisted by: Christian Cox.

Author
Posts
#951196

Hey

I have a CTP "Organisation". It has Several taxonomies - Org type, Services type, Areas of Operation and Target Audiences.
I created an Archive that serves as the archive for the org' CTP and it's taxonomies. In that archive, there is a custom search that filters the orgs' that are displayed by the taxonomy (using a drop down for each taxonomy) - so far so good.

In the homepage layout, I have a copy of the search filter (in a different view) set to
Custom Search Settings > What do you want to display in this cell? > Only the search form > On another page

When trying to select the org's archive as the destination page (hidden link) - I can't.

How can I set it so that when a user clicks on the "submit" button, in the HP search, he will be redirected to the org's archive with the search parameters he entered.

You can see it here (Can provide admin access if needed)

hidden link

Thanks

#951575

Yes unfortunately this is a limitation of custom search archives - it is not currently possible to split the search and results into two different pages. Only Views can be split into search and results on different pages.

#953124

So...no solution? What should I do?

#953162

It depends on the flexibility of your requirements. If you absolutely must direct the Users to the archive URL from the search Form, then I don't have a good solution for you. It will require custom code that falls outside the scope of support we provide here in the forums.

If it is acceptable to redirect the Users to a different URL like /search-results or something custom, then you can recreate this design in a custom search View. Apply any filters necessary to produce the same results you would expect to see in the archive. Add the View to your site and display only the filters. Set up the View to redirect to your custom page, where the filters and results are displayed together.