Want to redirect if search query match exact title of any post
First, don’t hack core files (unless you intend to submit a patch 🙂 ). Second, what you are doing isn’t really checking to see if the title exactly matches the search string. What you are doing it checking to see if there is only one result. That doesn’t mean the title matches. Undo the core … Read more