I am trying to:
I have a feature for searching for custom post type instances (Therapists). If you search for a person with an apostrophe in their name, you get results on desktop. However, the same search on iPhone yields no results.
Example name: D'amico
There are two results when searching on desktop but no results when searching on mobile.
If I search for Amico ( exclude the D; ) the search works on mobile.
Link to a page where the issue can be seen:
hidden link
I expected to see:
Two search results: therapists Claire D’Amico and Rina D’Amico
Instead, I got:
No therapists found matching your search.
Is this a bug or is there something I should be doing to prevent this from happening?
Hi. Since submitting this ticket I have learned more about the situation.
It turns out that mobile keyboards use the backtick by default instead of the apostrophe. As a result, the search doesn't match what's in the database as it's searching for D`Amico instead of D'Amico.
Is there a way to get around this? Can I have the search just ignore punctuation?
Hi there,
No unfortunately it is not possible as Toolset can just search what is there in the database.
Please check the website with other mobile phone as my phone adds the ' character correctly and it does not add`.
So either check with another phone, or change the keyboard to reflect a standard one in the settings of the phone.
Sometimes searching in other language might cause tegh issue as the key stroke for the other languages yields a ` result instead of '.
Thanks.
Thanks Christopher.
It's an interesting problem. Different mobile keyboards seem to display different characters that look like an apostrophe.
Hi there,
If you use a standard Keyboard in Android or IOS it will print ' which is the correct character for your case.
If you use third-party applications for keyboard or your keyboard is currently showing on another language (For example German) which has the same character set but different standard might print something else than '.
Thanks.