Skip Navigation

[Resolved] Checkboxes Filter does not work

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

Problem: I have a checkboxes group custom field on a custom post type, and I would like to use that field as a custom search filter. The filter does not seem to be working correctly.

Solution: Make sure "Save 0 to the database" is not selected for this custom field. That selection will cause problems in custom search. Then resave all the posts in this post type to fix the old checkboxes values.

Relevant Documentation:
https://toolset.com/documentation/user-guides/front-page-filters/#vfmh-adding-search-controls

This support ticket is created 6 years, 4 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

This topic contains 4 replies, has 2 voices.

Last updated by uweH 6 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#954456
01_group.png
02_view.png
03_output.png
03_output_2.png

Continuation of:
https://toolset.com/forums/topic/filter-again-does-not-work/

Hi there,

The problem of the mentioned ticket still exists.

We copied the view and copied one page for testing and, as your support team suggested, we removed the filters from the Filter output section. Then we re-added just one filter (Stimmung B-Es-As-Des) which is in use in various products.

You can find the page for testing here:
hidden link

What is wrong with it?

Thanks for your support and best regards
Uwe

#954536
Screen Shot 2018-07-24 at 11.25.34 AM.png

Hi, I think I see the problem. Your checkboxes custom field is set to "Save 0 to the database" when nothing is checked. This setting causes problems in search Views, and should be changed to "Save nothing" when nothing is checked.
https://toolset.com/documentation/user-guides/front-page-filters/#vfmh-adding-search-controls

Please make this adjustment in any checkbox field you would like to use in custom search View filters. Then you should re-save any posts where this checkbox field exists to reset the correct checkbox values.

Please let me know if this does not resolve the issue.

#956627
screen.jpg

Hi Christian,

you made me happy because your hint was the correct.

But there is still one small thing (sreenshot):

There is one productt with sound G-C-F-B on stock, but the filter does not allow to filter for this sound on stock.
What could be the reason for this error?

Thanks and best regards
Uwe

#956701
956627-screen.jpg

I don't understand, sorry! It looks like you circled GCFB, but the filter is CFBE. It's a different filter, right?

#1072555

Thank you