Skip Navigation

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

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

Last updated by Shane 2 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#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?
hidden link

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

#2266557

Shane
Supporter

Languages: English (English )

Timezone: 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