diff --git a/inc/function-search-fields.php b/inc/function-search-fields.php index 282bbea4..6e7577e3 100755 --- a/inc/function-search-fields.php +++ b/inc/function-search-fields.php @@ -53,7 +53,8 @@ function opalestate_property_render_field_template( $field, $label, $type = 'sel if ( $display_type_search == 'select' ) { $option_values = (array) explode( ',', opalestate_options( $setting_search_type_options, '1,2,3,4,5,6,7,8,9,10' ) ); - $template = ''; foreach ( $option_values as $value ) { $selected = $value == $qvalue ? 'selected="selected"' : ''; @@ -65,8 +66,8 @@ function opalestate_property_render_field_template( $field, $label, $type = 'sel } elseif ( $display_type_search == 'text' ) { $option_values = opalestate_options( $setting_search_default_text, '' ); $qvalue = $qvalue ? $qvalue : $option_values; - - $template = ''; + $template = ''; + $template .= ''; $template = sprintf( $template, $field, $qvalue ); } elseif ( $display_type_search == 'range' ) {