WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostRatings
[resolved] Show the post rating only (4 posts)

  1. darkangel4u
    Member
    Posted 8 months ago #

    Hello,

    Thank you so much for this great plugin. Its really nice and easy to use plugin. I just I have one question only:

    I'm using your plugin to allow the visitors/gusts to rate my wallpapers (posts) and I want to show the total rates with the stars for each wallpaper like if you select a wallpaper it will gives you some statistics about it and the total number of the users who rates this wallpaper with the average ratings.

    Thanks,
    Mohamed

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

  2. Lester Chan
    Member
    Plugin Author

    Posted 8 months ago #

    If you want to embed other post ratings results usingshortcode, use [ratings id="1" results="true"] where 1 is the post ID.

    If you want to use PHP <?php echo the_ratings_results(1); ?> where 1 is the post id

  3. darkangel4u
    Member
    Posted 8 months ago #

    Thank you so much Lester. That worked fine with me. Here's what I did to get the rating for each post by getting the post ID:

    <?php $postid = get_the_ID(); ?>
    Rating: <?php echo the_ratings_results($postid); ?>

    But what if I want to show the stars only at specific place (statistics area) and at the same time show the default stars with the text in different place?

    Thanks,
    Mohamed

  4. Lester Chan
    Member
    Plugin Author

    Posted 8 months ago #

    Sorry that is not possible

Reply

You must log in to post.

About this Plugin

About this Topic

Tags