Is there a way to swap the positions of the Category selector and the Radius Slider widgets? Currently it’s Categories followed by Radius and I want the opposite.
Please try this PHP snippet
add_filter(
'hivepress/v1/forms/listing_filter',
function($form){
if(isset($form['fields']['_radius'])){
$form['fields']['_radius']['_order'] = 35;
}
return $form;
},
1000
);
Didn’t work until I changed the order from 35 to 5. Now it does. Thanks.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.