• Hi

    I was wondering, is there a way to get the tallied results of all the ratings so I can process that number and show a graph in the home page?

    I have a gauge that has to show the general opinion of the blog according to the overall score of all the posts. Is it possible?

    Thanks

    https://wordpress.org/plugins/kk-star-ratings/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Kamal Khan

    (@bhittani)

    <?php
    if(function_exists("kk_star_ratings_get"))
    {
        $top_rated_posts = kk_star_ratings_get($total);
    } 
    
    foreach($top_rated_posts as $post)
    {
        // you get $post->ID and $post->ratings
        // Do anything with it like get_post($post->ID)
        // ...
    }
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Process results’ is closed to new replies.