Viewing 5 replies - 1 through 5 (of 5 total)
  • what kind of “custom posts” do you use? custom post types?
    try inserting this code into the apropriate template source:
    <?php wp_gdsr_render_article(10, false);?>

    non clickable stars can also be a result of jquery conflicts.

    Thread Starter justfordevelope

    (@justfordevelope)

    Thanks for your answer but I forgot to say that I need some method where I can pass $post_id and get clickable star rating for those posts.

    There is no jquery conflicts.

    Thread Starter justfordevelope

    (@justfordevelope)

    Hey just found the solution. I made new method for this, similar to method you send me just plus one more parameter…

    function wp_gdsr_render_rate_stars_by_post($template_id = 0, $read_only = false, $stars_set = "", $stars_size = 0, $stars_set_ie6 = "", $echo = true, $my_post) {
        global $post, $userdata, $gdsr;
        $override = array("style" => $stars_set, "style_ie6" => $stars_set_ie6, "size" => $stars_size, "tpl" => $template_id, "read_only" => $read_only ? 1 : 0);
        $user_id = is_object($userdata) ? $userdata->ID : 0;
        $gdsr->cache_posts($user_id);
        if ($echo) echo $gdsr->f->render_article($my_post, $userdata, $override);
        else return $gdsr->f->render_article($my_post, $userdata, $override);
    }
    Thread Starter justfordevelope

    (@justfordevelope)

    Now I have another problem. ?? Everything is good but when i’m trying to load more posts using ajax, method cache_posts in previously created method is not working -> there is no $gdsr->f it’s empty. Do I have to initialize plugin again? If yes can you tell me which method should i use because I can’t find it.

    Thanks mate

    a_ahmed

    (@a_ahmed)

    Is there a way to make the posted rated votes appear on a thumbnail of a post on the front page?

    A theme I use has ‘review ratings’ but its something you set when you make a post and give it a review rating. They are not total votes cast

    See what I’d like to achieve looks great in my opinion if this plugin or any other plugin could achieve this:

    https://www.frip.in/wp-content/uploads/2012/12/Boulevard-A-WordPress-Magazine-Theme.png

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Get rate stars on custom posts’ is closed to new replies.