Skip Navigation

[Resolved] Confirmation of approach being used

This support ticket is created 2 years, 11 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by JoshuaD7497 2 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#2238887

Tell us what you are trying to do?
I have set up a directory of local holiday cottages using a custom post archive.
I need to have a search on the home page which mirrors the archive page search.

Is there any documentation that you are following?
I understand that there's no easy way to do this, which has come as a surprise.
Am I correct in thinking that I have to set up a custom Toolset view (another search page) and add the search only view to the home page?
If so, presumably I have to reformat the new search page to be identical to the archive page? Are there any shortcuts for doing this?
Plus, if I want to have lots of pages with 'pre-search' results, how would I achieve this? See the example website below.

Is there a similar example that we can see?
hidden link and other similar pages in this site. They use Toolset and have lots of similarly formatted pages for different results (different destinations and collections). Have they just used one view on each page with different filtering? Is this the best way to approach this?

What is the link to your site?
The site is in production so not publicly available but I can provide access if necessary.

#2239165

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Joshua,

Am I correct in thinking that I have to set up a custom Toolset view (another search page) and add the search only view to the homepage?

That is correct and checking on your other ticket it would appear that you've already done this, which would be the correct approach.

If so, presumably I have to reformat the new search page to be identical to the archive page? Are there any shortcuts for doing this?

That is correct given that the Archive page doesn't physically exist so you aren't able to select it as your results page. So remaking an exact copy of the archive as a page would be needed.

Plus, if I want to have lots of pages with 'pre-search' results, how would I achieve this? See the example website below.

This would require multiple views to achieve, however is it a case where you want to have physical pages with the prefiltered listings? Where the user will just click to from their menu bar?

Please let me know.

Thanks,
Shane

#2239205

My intention is to have a page linked to for each collection of cottages.

E.g. hidden link

But I don't really want to set up a separate view for each one.
Otherwise it would be a logistical nightmare to create an identical view for every single 'collection'.

Can I set up the pages and add the save view to each one, but with different filtering options upon arriving at the page?
Because presumably I wouldn't need to recreate the view repeatedly?

#2239207

Sorry, that should have read "add the same view to each one"

#2239335

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2021-12-07 at 3.54.04 PM.png

Hi Joshua,

What you can do is to create a specific view for this purpose and set the filter to get the information from the current page.

Let's say you're on the dog-friendly page and i'm assuming this is a taxonomy term then you can add set the query filter for that particular taxonomy to show all the posts with the same taxonomy select. See Screenshot.

Please let me know if this helps.
Thanks,
Shane

#2239727

Thanks Shane, very helpful.

I'll look forward to proceeding with this project using your advice.

Many thanks,
Josh.