WordPress - redirect to the post instead of archive page when search query returns single result
By Wesley Turcotte at Feb 16 2022