How to redirect to post if search results only returns one post

Question

I want to send visitors to my search.php after a search to display list of posts. If there is only one search result, user can directlyto the post in question(something like GOOGLE’s I am Feeling Lucky Button)

Thank you all.

0
, , Marissa Tweel 8 years 2013-10-30T02:00:22-05:00 0 Answers 87 views 0

Leave an answer

Browse
Browse