Navigation überspringen

[Gelöst] If a search has no results, show another search

This support ticket is created vor 3 Jahren, 1 Monat. 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 – 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)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Shane vor 3 Jahren, 1 Monat.

Assistiert von: Shane.

Author
Artikel
#2266343

Tell us what you are trying to do?
I have a text search to search "Locations". It's possible not to find the "Location" you're looking for. If this happens, instead de "No items found" message, I would like to display a new search to "Provinces".

Is there any documentation that you are following?
I didn't fund anything related.

What is the link to your site?
versteckter Link

It's a developing site, so you can have a look without problem

#2266557

Shane
Supporter

Sprachen: Englisch (English )

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

Hi Jaime,

Thank you for getting in touch.

Assuming here that you're using the classic view setup to do this search then you should just be able to add the secondary search view's shortcode to the 'No Results Found' section.

This should allow you to display your next search if there view returns no results found.

A similar setup can be done if you're using the blocks builder as well.

Thanks,
Shane