Today I am sharing quick gist which can redirect plural search terms to the results with singular search terms.
Here is when it can be useful:
Let’s say you have some article/page/product which contains the word “e-book”. But your visitor enters your website and searches for the term “e-books”. By default search algorithm he/she will get “not found” message.
But if to implement this small gist, you can win that visitor:
I tried this and it worked as expected on single word searches but if I typed a 2 word search in it didn’t work.
Hi Kelth. Can you give any example keyword?
Because, it should not matter how many words the keyword contains.
“Shillings” works and returns results for shilling but “double florins” didn’t work.
Just want to give a huge thank you for this little piece of code, works perfectly for me.
close but it doesn’t really work if they’re searching a phrase or multiple words