Forums › Forums › Search & Filter Pro › Checkboxes show multiple values
Tagged: checkbox
- This topic has 11 replies, 2 voices, and was last updated 7 years, 6 months ago by Trevor.
-
Anonymous(Private) May 3, 2017 at 8:06 pm #106352
Hi, my filter checkboxes show all values checked in the post as one choice each. I want to show them as single values I can filter. To be clearer: My posts have a choice of paper formats (lets say 1, 2, 3, 4), if I check more than one of them within one post they show each combination as a filter choice like this: choice one: 1, choice two: 1|2|3, choice three: 2|3|4 and so on. But I need a result of all posts which have at least one of the single values checked. So the list should look like: choice one: 1, choice two: 2, choice three: 3, choice four: 4 and so on. And for each value I select it should narrow the filter to the ones which have one or more of these values checked. No idea if I was able to explain clearly, but I hope you can help.
Thanks, Andy
Trevor(Private) May 4, 2017 at 4:31 pm #106503I think I do see.
There is a field called
post-meta-papierformat
. I assume this is a custom field (meta key). Is it a single data entry field or a multi data entry field (stored as an array? In ACF ( a popular field plugin), you can create such a multi value array field (as a multi-choice drop down select).This is how your data must be stored.
It cannot be a single field with data like
1,2,3,4
as this is not a data array format as used by WordPress meta keys. -
AuthorPosts