• 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 –

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Milan Petrovic

    (@gdragon)

    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.

    Thread Starter venntom

    (@venntom)

    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 https://www.dbagb.be
    Currently it’s the article “Een nieuwe pen meldt zich bij DBAGB!” on the home page that is affected.

    Plugin Author Milan Petrovic

    (@gdragon)

    You must use the function within the loop.

    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!

    nevermind, got it with templates!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: GD Star Rating] "wp_gdsr_render_article" function shows blank stars with rating 9’ is closed to new replies.