Skip Navigation

[Resuelto] If a search has no results, show another search

This support ticket is created hace 2 años, 9 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Shane hace 2 años, 9 meses.

Asistido por: Shane.

Autor
Mensajes
#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?
enlace oculto

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

#2266557

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: 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