I got this Error on my Page slider:
Warning: number_format() expects parameter 1 to be double, string given in /home/globalar/public_html/wp-content/themes/automotive_s1/includes/slider.php on line 30
<?php
if $str = floatval($str); ($post->post_type == "gtcd") {
the_title();
if (isset( $fields['price'])) {
echo ' | <span class="price_slider">'.' '.$symbols['currency'];
echo number_format($fields['price']).'</span> ';
} else {
echo '';
}
$fields['price']='8, 9858';
echo number_format((float)$fields['price']);
use (float)
to parse correct way
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With