Skip Navigation

[Resolved] Views/Search

This thread is resolved. Here is a description of the problem and solution.

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 3 years, 2 months ago. 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 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by CaseyK4294 3 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#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?
hidden link

#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!