WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostRatings
How To Get the Score of he post in a Variable??? (1 post)

  1. Profesor Yeow
    Member
    Posted 3 years ago #

    Hi, my question is simple, but i can not found in the documentation.

    The option:
    <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
    show the "votes" and make all. that is great and is working...

    my problem is... making something later(out) than that code... I need to get the total of votes and the score of votes, for save in a integer or real

    for example:
    I need the integer/real "ALLVOTED" with the number of "how many vote the current post"
    And other integer/real "SCORE" with the current score of the post.

    I need get that, for show "X people votes and the score is Y, the percent is Z" OUT (in other place) where appears the ranking with the
    <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
    (Z = i will get the percent with an easy function in php of course)

    The question is: how to get that values?

    Thanks for your time!

    http://wordpress.org/extend/plugins/wp-postratings/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic