Skip Navigation

[Resolved] How do I create a view filter using a checkbox custom field?

This support ticket is created 5 years, 8 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
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 1 reply, has 2 voices.

Last updated by Christian Cox 5 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#1230437

I am trying to have a view take the url parameter "activity" and see if it is LIKE the value of one checkbox in a checkbox custom field. The custom field has values like "Presenter" or "Producer" but using [url]?activity=Presenter has no effect and all users are shown.

#1230671

Hi, to use a Checkboxes field group as a custom search filter, you must select the option "When unchecked, don't save anything to the database" in the field group editor screen. If not, you'll get unexpected results. Also you must be sure that your View has a Query Filter set up correctly for the filter control. If you cannot see the Query Filter panel in the View editor, scroll to the top right corner and click "Screen Options" to activate the Query Filter panel. There should be a corresponding custom field filter here, and the URL parameter should be "activity".

If this isn't working as expected, please take a screenshot of the Query Filter settings, copy the code from your Search and Pagination panel in the View editor screen, and take a screenshot of the checkboxes field options so I can see how they are configured. Twirl open each checkbox so I can see the details. Then include all that information in your next reply. I'll take a closer look.