showing more digit, how to edit the code?
-
Hi all,
I bought a custom theme for a property listing website, and there is one portion where i can key in the number of bed room
Currently, it only will display the digit, for example when i key in
“1 to 4”It will only display 1
I will like it to display the full “1 to 4” instead.
I kinda figure out this is the portion of the code that display the bedroom information, question is how do i tweak it to display the full text?
if( !empty($post_meta_data['REAL_HOMES_property_bedrooms'][0]) ) { $prop_bedrooms = floatval($post_meta_data['REAL_HOMES_property_bedrooms'][0]); $bedrooms_label = ($prop_bedrooms > 1)? __('Bedrooms','framework' ): __('Bedroom','framework'); echo '<span><i class="icon-bed"></i>'. $prop_bedrooms .' '.$bedrooms_label.'</span>'; }
Thanks
Ming
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘showing more digit, how to edit the code?’ is closed to new replies.