Redirect a view if no results

By: Michael Thena | Asked: 11/04/2024
ForumsCategory: General questionsRedirect a view if no results
Michael ThenaMichael Thena asked 1 month ago
If someone does a lookup on the front end, and no results are able to be displayed, can the end result be a redirect to a page of information that they should see if no results from their lookup are provided?
1 Answers
Rob LeVineRob LeVine answered 1 month ago
Assuming by "does a lookup" you mean that they visit a page that has a view that returns no entries, you can use the No Entries Message section of the view and do most anything you want in it, including adding JavaScript to redirect the user somewhere else.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right