First, turns out that is not sufficient. (The search engine caches the search!)
So what you need to do is place the following code in search.php somewhere before the call on `printSearchForm()`
` $_zp_current_search->processed_search = ''; $_zp_current_search->words = ''; ` Of course, do this only if there have your page determines there are no results.
Comments
Anyway - IMHO - I thought that my first request (if no result found) would get sense.
Cheers !
This has to be done in the theme itself as the theme is the only entity that knows if the search was empty. We can add that to the standard themes.
could you please tell me where to write it in search.php ?
I'm a bit lost.
Cheers.
So what you need to do is place the following code in search.php somewhere before the call on `printSearchForm()`
`
$_zp_current_search->processed_search = '';
$_zp_current_search->words = '';
`
Of course, do this only if there have your page determines there are no results.
A big thank you, Stephen !
Cheers !