Your address will show here +12 34 56 78

Home Forums Custom Work How to change number_format to text Reply To: How to change number_format to text

#117271

patymorgh
Participant

I found some codes about it, but I’m not sure what to replace:

At property_unit.php and in property_unit_half.php=

$property_size=number_format(floatval($property_size));

—————————————-

At property.php=
<td width=”33%” valign=”top” align=”left”>
<p class=”meta-options”>
<label for=”property_size”>’.__(‘Size: ‘,’wpestate’).'</label><br />
<input type=”text” id=”property_size” size=”40″ name=”property_size” value=”‘ . esc_html(get_post_meta($mypost, ‘property_size’, true)) . ‘”>
</p>
</td>

————————————–

At theme_slider.php =

$size = number_format (intval ( get_post_meta($theid, ‘property_size’, true) ) );

————————————-

At listing_functions.php =

if ( isset($plan_size_array[$key]) && $plan_size_array[$key]!=”){
$plan_size=__(‘size:’,’wpestate’).’ ‘.$plan_size_array[$key].’ ‘.$unit.'<sup>2</sup>’;
}else{
$plan_size=”;