To redirect user to post if only one search result has returned, you can use this WordPress code snippet in your theme's functions.php file.
Visit WPCodeSnippet
The post Redirect User To Post If Search Results Return One Post appeared first on WordPress Code Snippets Library.