I have a custom post type “regions” and custom taxonomy of “postcodes”.
I need the search to work on part words. At the beginning of the words
I have 1 test set up.
searching Exeter, ex1 or ex10 or EX16HY, EX1 6HY should all return the ‘Exeter’ region which has a tag of “ex1” and Title of “Exeter” assigned to it.
I have the logic set to OR but this function is not working.
I have ex1 in the postcodes tag taxonomy. I was hoping that would recognised as a part word for both searches ex10 and ex16hy.
ex1 space 6hy will work as ‘ex1’ is a separate phrase but not the part word recognition without the space ‘ex16hy’.
Is there any way to get part word recognition for the custom taxonomy ‘postcodes’ ?
It works the opposite way – the phrase must be a part of the match, not the match keyword as part of the phrase, there is no way of doing that unfortunately.
You can however use the synonyms feature. That is a great way for adding similar keywords, and it works globally. Make sure that you recreate the index once you added the synonyms.