-1
function tr_rating_format_number($id = NULL, $display = NULL) {
$return = number_format(get_post_meta($id, 'ratings_average', true), 1);
$return = get_post_meta($id, 'ratings_average', true) == '' ? '0.0' : $return;
if( $display == TRUE ) { echo $return; }else{ return $return; }
}
Warning: number_format() expects Parameter 1 to be double, string Given in /home/moovseri/public_html/wp-content/themes/toroplay/inc/template-functions.php on line 434
Please help!
The error itself is telling the error rs.
– Sam