[12-Nov-2024 21:13:00 UTC] PHP Warning: Undefined array key "optionMetaValue" in /bricks/includes/elements/filter-base.php on line 431
[12-Nov-2024 21:13:04 UTC] PHP Warning: Undefined array key "optionMetaValue" in /bricks/includes/elements/filter-base.php on line 431
Can you help to check or provide some screenshots of all your Filter - elements where using “Custom Field” as source + “Custom” Label? I need to check your Custom Label mapping data.
Alternatively, please provide admin access and send it to help@bricksbuilder.io (Include this forum thread URL as reference)
Oh I now understand what the label mapping is for. It is a key to change the labels of option values. I did not understand what was supposed to do with that! Sorry for my error!
But I also cannot see the values in order to change them. In my case I would assume the values would be true and false ? I wanted a filter that if a value exists then to list just them. So an example would be:
“Includes bonus” // For where ‘bonus’ exists
“Show all” //For every value, bonus or no bonus.
When you use an “exist”, are the values 1/true or 0/false ? Or is it just a true statement? Because I actually would not want to include the false statement, as I can use the “All” option as an alternative to the false. Because there would not (in this case) be a scenario where you need the false.
I hope this makes sense. I think I am trying to understand where you can see the values of a condition in order to map them!
Unfortunately, label mapping is not meant for your scenario.
You want to group options but this is not possible in Bricks Query Filters.
Label mapping is meant for user who created custom fields to store values in integer (0, 1,2,)
Without mapping, visitor can only see 0, 1, 2 as the filter options.
With mapping, now user can map like
0 => “Off”
1 => “Ready”
2 = > “Completed”
The Compare field is for you to indicate what logic to be used later when one of the options selected in the frontend when using the filter.
If you set equal, when user choose “1” (Ready), then the result will be all posts where 'YOUR_META_KEY" “equal” “1”
If you set IN, when user choose “1” (Ready), then the result will be all posts where 'YOUR_META_KEY" “IN” “1”
If your academicrecommendation_multiple is serialized data. Bricks will not know how to index and generate the meta query. So it will be emptied.
However, if you are using 1.11.1 and above and that field was created by ACF or MetaBox, you can enable this Custom Field Integration so Bricks is able to deal with the serialized data.