WordPress.org

Forums

WP-PostRatings
[resolved] Extra numbers (00) on %RATINGS_AVERAGE% after real rating (3 posts)

  1. Violent
    Member
    Posted 1 year ago #

    When I use %RATINGS_AVERAGE% on the frontend it shows a real average number and two other numbers after it (00). For Example: (my higher rating is 5) "2 votes, 500 stars out of 5". How to fix it?
    Thanks!

    https://wordpress.org/plugins/wp-postratings/

  2. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    Is your language not in English? It might be something to do with your language pack.

    You might want to replace "number_format_i18n" with "number_format" on line 1214 https://github.com/lesterchan/wp-postratings/blob/master/wp-postratings.php#L1214

  3. Violent
    Member
    Posted 1 year ago #

    Thanks a lot, it helped!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic