WordPress.org

Ready to get started?Download WordPress

Forums

GD Star Rating
[closed] "wp_gdsr_render_article" function shows blank stars with rating 9 (6 posts)

  1. venntom
    Member
    Posted 3 years ago #

    HI,

    I currently use the following article rating rendering function in my theme:
    <?php if (function_exists('wp_gdsr_render_article')) {
    wp_gdsr_render_article($post_id=0, $read_only=true, $stars_set="crystal", $stars_size=12);} ?>

    Although al other articles show correctly the stars and rating text, there is one article that shows blank stars although the rating text for the article indicates "Rating 9.5/10 (5 votes cast).

    I have tried all re-scan, cache, recalculation settings and instructions from the FAQ; without success...

    How can I make the stars images behave in sync with the rating text?

    Thx -

  2. Milan Petrovic
    Member
    Plugin Author

    Posted 3 years ago #

    Simple, your function call is wrong. Function definition is:

    wp_gdsr_render_article($template_id = 0, $read_only = false, $stars_set = "", $stars_size = 0, $stars_set_ie6 = "", $echo = true)

    Post ID can't be set, and will be taken from the global $post.

  3. venntom
    Member
    Posted 3 years ago #

    Thanks for your quick response.
    I have corrected the function call, but the outcome is still the same...
    You can have at look at it on http://www.dbagb.be
    Currently it's the article "Een nieuwe pen meldt zich bij DBAGB!" on the home page that is affected.

  4. Milan Petrovic
    Member
    Plugin Author

    Posted 3 years ago #

    You must use the function within the loop.

  5. dlawton
    Member
    Posted 3 years ago #

    is there some way to not show the stars? on the homepage i want to just display the rating text (for example rating 8/10 with 10 votes) and then on the post page i want to display the stars so people can actually rate the post?

    thanks!

  6. dlawton
    Member
    Posted 3 years ago #

    nevermind, got it with templates!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic