Forums › Forums › Search & Filter Pro › Problem with apostrophe and blank space
- This topic has 19 replies, 3 voices, and was last updated 9 years, 1 month ago by
Anonymous.
-
Anonymous(Private) May 11, 2016 at 11:13 am #45263
Hi Trevor,
if you go to this page http://lnx.movie-time.it/new/film/ and for example search this title “36 ORE ALL’INFERNO”, it doesn’t work because of the apostrophe.And happend the same if for example you search for a director “Antonio Petrucci ” (as you can see i left a blank space at the end of the name on purpose)
Thanks for helping
Michele
Ross Moderator(Private) May 12, 2016 at 11:19 pm #45436Hi Michele
I’m going to have to look into this further.
For now, can you leave the ACF name, without space or apostrophe? You can always use a label to use the text you want:
safename : not 'so' safe name
Thanks
Ross Moderator(Private) May 31, 2016 at 6:54 pm #47159Hi Michele
So essentially the issue is that these characters are not being searched properly in the combobox dropdowns?
And because in ACF, it is a plain text field, these are getting saved in as the values, not only the labels.
Our comboboxes are powered by this JS library (which is what is giving the problem):
https://harvesthq.github.io/chosen/Due to some other issues I discovered with “chosen”, I also implemented “select2” – https://select2.github.io/
I’ve just emailed you the dev version, which contains select2 – hopefully this will be a sufficient workaround for your issues.
To change from chosen to select2 – head to the main “settings” under the “Search & Filter” menu item in the admin area.
Here you will see an option to change which script to use for comboboxes 🙂
Let me know how you get on.
Thanks
-
AuthorPosts