/ Published in: PHP
Courtesy Kevin Chard at WPSnipp.com.
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.
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.
URL: http://wpsnipp.com/index.php/functions-php/redirect-to-post-when-search-query-returns-single-result/