Tag: empty search query

WordPress search redirects to home when search query is empty

By default, WordPress redirects users with empty search queries to the home page – which might not be what you are looking for. To overcome this behavior and redirect users to the search results page regardless of empty search queries we need to adjust the way WordPress processes search queries. As always, this can be […]