WordPress.org

Ready to get started?Download WordPress

Forums

GD Star Rating
Dynamically get numerical value of rating instead stars for Editors and Users (2 posts)

  1. galinstefanov
    Member
    Posted 5 months ago #

    Can i get dynamicly numerical value of rating instead Stars for my post with ID 108 in WordPress. In my case i have table with reviews(one post is one review) i want to take in table dynamicly my Editors Review and Users Review in numerical ( like 4.5 , 3.0 ). How this can be done. I read a few times the documentation and searched everywhere in google..but unfortunately without success. Thank you in advance!

    Kind Regards,
    Galin Stefanov!

    http://wordpress.org/plugins/gd-star-rating/

  2. galinstefanov
    Member
    Posted 5 months ago #

    wp_gdsr_render_rating_results(array('template_id' => 48, 'select' => 'post', 'category' => 9, 'min_votes' => 1));

    When i use this function i get
    TITLE | VOTES | RATING | REVIEW
    Post1(name) | 1 | 5.0 | 5.0
    Post2(name) | 1 | 5.0 | 5.0

    But this is list with all posts which are from category 9 and have more than 1 vote
    I want to get for example ONLY for POST with ID 108 in my WordPress. How could this be done? I tryed wp_gdsr_render_rating_results(array('template_id' => 48, 'select' => 'post', 'post' => 108, 'min_votes' => 1));
    wp_gdsr_render_rating_results(array('template_id' => 48, 'select' => 'post', 'post_id' => 108, 'min_votes' => 1));
    wp_gdsr_render_rating_results(array('template_id' => 48, 'select' => 'post', 'post_id' == 108, 'min_votes' => 1));

    Thank you all in advance!

Reply

You must log in to post.

About this Plugin

About this Topic