Skip Navigation

[Resolved] Pointing the Search Widget Results to Archive

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

Problem: I would like to include a custom search widget on the single post page, but I would like to show the results in a WordPress Archive page.

Solution: You can split a View's search form and results into two pages, but not a WordPress Archive.

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

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

Assisted by: Christian Cox.

Author
Posts
#915400

Tell us what you are trying to do?
I have a custom post type with a single item template and the item list archive.
I do want to have a search widget on the single item page. so far i wasn't able to figure out how to point the search results to the archive. Having a separate page with search results seems redundant. Please advise.

What is the link to your site?
hidden link

#915512

so far i wasn't able to figure out how to point the search results to the archive.
It's not possible to point a search View to a WordPress Archive in the current system. You can split a View into the search form and the results, but you can't split a WordPress Archive in the same way. One way to get around this is to remove all the contents from between the wpv-loop tags in the WordPress Archive's Loop Output editor, then insert the custom search View's results just before the wpv-loop tags. Basically you're bypassing the WordPress Archive's functionality and replacing it with a View.