Hello,
this is possible with a code snippet:
/**
* Display price (min/max) select
* dropdowns instead of text fields
*/
add_filter( 'wpsight_get_search_fields', 'custom_search_form_details', 50 );
function custom_search_form_details( $fields ) {
// Set price (min) to select
$fields['min']['type'] = 'select';
// Set price (min) select options
$fields['min']['data'] = array(
'100000' => '100.000',
'200000' => '200.000',
'300000' => '300.000',
'400000' => '400.000'
);
// Set price (max) to select
$fields['max']['type'] = 'select';
// Set price (max) select options
$fields['max']['data'] = array(
'500000' => '500.000',
'600000' => '600.000',
'700000' => '700.000',
'800000' => '800.000'
);
return $fields;
}
Please avoid any currency signs within this code snippet, otherwise the search will return weird results.
If you do not know where to place this code you might want to use the Code Snippets Plugin and add the code there.
All the best,
Joe [WPCasa]