Forums › Forums › Search & Filter Pro › Make range filter work with only min value.
Tagged: V3
- This topic has 15 replies, 2 voices, and was last updated 5 years, 1 month ago by Trevor.
-
Trevor(Private) November 25, 2019 at 7:37 pm #227620
It would to be set something like this:
https://www.screencast.com/t/9xqY9L1Kaa7
And the custom css would be like this:
.sf-field-post-meta-edd_price label:last-of-type, .sf-field-post-meta-edd_price span:last-of-type { display: none; }
Anonymous(Private) November 27, 2019 at 8:13 am #227743I was able to modify the dropdown filter via a hook but it seems that the dropdown filter is not working even without using the hook in the first place.(return no result)
Do you know why?fyi this is the function I used.
function sf_input_object_pre_mod($input_object,$sfid){ if($sfid==151){ if($input_object['name']=='_sfm_property_bedroom'||$input_object['name']=='_sfm_property_bathroom'){ $opts = $input_object['options']; foreach($opts as $ok=>$ov){ $input_object['options'][$ok]->label = preg_replace('/ .+/','',$ov->label); $input_object['options'][$ok]->value = preg_replace('/\+.+/','+99',$ov->value); } } } return $input_object; } add_filter('sf_input_object_pre','sf_input_object_pre_mod',10,2);
-
AuthorPosts