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 '';
}
You should check what value is inside
$fields['price']
.Just do:
It's possible you have some spaces or
,
instead of.
use
(float)
to parse correct wayfix it with define other variabel.
maybe help