Monthly Archives August 2012

How to Show Empty Search Results on WordPress

WordPress Logo

WordPress Logo (Photo credit: Phil Oakley)

When one of your users submits an empty search (that is, they click submit without entering anything in the text field), the default behavior for WordPress is to redirect to the home page, and no indication is given that there was a problem with the search. Unfortunately, this is not a user-friendly thing to do. How can we fix this?

Read More