WordPress.org

Ready to get started?Download WordPress

Forums

Rating-Widget: Star Rating System
[resolved] Put rating in text widget per page (4 posts)

  1. CBKat
    Member
    Posted 1 year ago #

    I've seen this asked a few places months ago, but no solution.

    Right now I use the GD Star Rating system. But I don't like it much. I do however like this one. Only thing is, I'm looking to put it on every post...in the widget area instead of within the content of the post.

    I already have Widget Logic installed, so I can put custom text blocks in certain pages. I just need to know what code I'd use per page to add a different rating code to each page.

    Is this possible?

    http://wordpress.org/extend/plugins/rating-widget/

  2. vovafeldman
    Member
    Plugin Author

    Posted 1 year ago #

    Yes you can! Add the following lines for Posts/Pages:

    <?php
        global $rwp, $post;
        echo $rwp->EmbedRating($rwp->_getPostRatingGuid(), $post->post_title, get_permalink($post->ID), 'blog-post', true);
    ?>

    Please let me know if that successfully worked, and I would love to see it in action - so share your url. Thanks!

  3. CBKat
    Member
    Posted 1 year ago #

    Thank you! I actually think I may go with it right embedded now that I found the advance options :)

  4. vovafeldman
    Member
    Plugin Author

    Posted 1 year ago #

    Cool! Please share the url so I can see your work.

    Btw. I would really appreciate if you could spend 60 sec rating the plugin on WP to help us spread the word (don't forget to click the Post button to submit the rating):
    http://wordpress.org/support/view/plugin-reviews/rating-widget#postform

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.