Been stuck on this for a while now. Haven't come across anything that has shed any light on it for me... Pardon my ignorance... quite a newbie at this level of php.
The problem: I am using the wp-property plugin, but need a field that can have multiple numeric values. Using Advanced Custom Fields to set up a checkbox field that can accept multiple numeric values. I am attempting to add this field to the wp-property search function. I get a dropdown menu, but it is populated with lines that look like unformatted arrays.
s:19.a:1:{i:0;s2 and so on. My values are in that string but I don't know what to do to single them out.
I have this in my functions.php
add_filter('wpp_searchable_attributes', 'add_lease_to_searchable');
function add_lease_to_searchable($fields) {
if(is_array($fields))
array_push($fields, 'lease-space1' );
return $fields;
}
Which gets that dropdown to be a part of the wp-property function. If anybody has an idea on how to extract the values... even better put one on each dropdown line, that would be amazing. Feel stuck with no light at the end of the tunnel.