Passer la navigation

[Résolu] Views/Search

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

Set up a custom search according to criteria set in custom fields formatted with the checkboxes setting

Solution:

You need to avoid to use special character "comma" in the option value, the option "Residential, Suburban" is using option value "residential, suburban", there is a comma inside it, it will conduct unexpected result, you can change the option value to something else, for example: residential-suburban

Relevant Documentation:

This support ticket is created Il y a 4 years, 7 months. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Fuseau horaire du supporter : Asia/Hong_Kong (GMT+08:00)

Ce sujet contient 4 réponses, a 2 voix.

Dernière mise à jour par CaseyK4294 Il y a 4 years, 7 months.

Assisté par: Luo Yang.

Auteur
Publications
#2214775

Tell us what you are trying to do?
Set up a custom search according to criteria set in custom fields formatted with the checkboxes setting. I have displayed the name and count in the search view. Some search options that are showing with a specific count suddenly change to zero when clicking search. For example, under town by Feel, if you check off "residential, suburban" which has a count of 24,, it changes to zero and then says there are no results that meet this criteria.

What is the link to your site?
lien caché

#2215507

Hello,

You need to avoid to use special character "comma" in the option value, the option "Residential, Suburban" is using option value "residential, suburban", there is a comma inside it, it will conduct unexpected result, you can change the option value to something else, for example: residential-suburban
Save all posts and test again

#2215845

Thank you, I will test this today!

#2216365

Please update here if you still need assistance for it, thanks

#2221937

I used semicolons instead of commas. My issue is resolved now. Thank you!