Can I change the order on the listing search form?
Now the order is “keyword” “category”,
but I want the order to be “category” “keyword”.
How can I do that?
Can I change the order on the listing search form?
Now the order is “keyword” “category”,
but I want the order to be “category” “keyword”.
How can I do that?
Please try this PHP snippet
add_filter(
'hivepress/v1/forms/listing_search',
function ($form){
if(isset($form['fields']['_category'])){
$form['fields']['_category']['_order'] = 1;
}
return $form;
},
1000
);
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.