Sauter la navigation

[Résolu] If a search has no results, show another search

This support ticket is created Il y a 2 années et 11 mois. 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)

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Shane Il y a 2 années et 11 mois.

Assisté par: Shane.

Auteur
Publications
#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?
lien caché

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

#2266557

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: 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