wordpress snippets last updated   : January 28, 2015
we now have 645 snippets

Redirect to post when search query returns single result

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will redirect your search to the post automatically when wordpress only returns a single search result.

read more