Navigation überspringen

[Gelöst] 2 of 13 checkboxes show no result in search

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem: I have a checkboxes group custom field with several options. Two of the options display no results in a custom search View, even though several posts have those checkboxes checked.

Solution: Ensure there are no commas in the checkbox name or value. Commas seem to be causing problems with search. For best results, use simple text only without punctuation or special characters.

This support ticket is created vor 4 Jahren, 4 Monaten. 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von MargeP6083 vor 4 Jahren, 4 Monaten.

Assistiert von: Christian Cox.

Author
Artikel
#1761327

I am trying to find out why 2 checkbox fields are showing no results in a search view. All checkboxes are in use on user profile posts. 11 of those check boxes return users. 2 of those check boxes return no results. This is a new behavior.

I moved to a staging site for testing and same behavior. Deactivated non-toolset plugins and same behavior.
Created a single field search view. Same behavior. versteckter Link
The two fields not working are Mobility and Medical Condition. All other text boxes work. versteckter Link

Link to a page where the issue can be seen: versteckter Link and versteckter Link

I am including login to the staging site in case you want to deactivate plugins or copy files.

#1761893

Okay thanks, I don't see anything obviously wrong, so I'm going to create a site clone and run some tests locally. I'll update you when I have some information to share.

#1762545

Okay after running some tests I can see the problem has something to do with commas in the checkbox contents. Notice that the two checkboxes that are not working correctly are the only two that contain commas in the checkbox values. I edited those checkboxes in the staging site to remove the commas. Now the checkboxes are:
- Mobility (ie. crutches or wheelchair)
- Medical Condition (ie. cancer or MS)

1. Can you confirm the search feature is now working as expected for existing posts?
2. Can you confirm the search feature is now working as expected for new posts?

#1762575

That worked! No commas in fields.

My issue is resolved now. Thank you!