In geolocation settings i have set the radius to 1000km but when i try to adjust the radius using the slider on my website, it says “value must be equal to or less than 100”. How can i increase this to 1000?
Please try this PHP snippet
add_filter(
'hivepress/v1/forms/listing_filter',
function($form){
if(isset($form['fields']['_radius'])){
$form['fields']['_radius']['max_value'] = 1000;
}
return $form;
},
1000
);
Thanks for the reply. Where is it that I paste this PHP snippet into?
Please use the Code Snippets plugin to add and manage custom PHP code snippets Code Snippets – WordPress plugin | WordPress.org
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.