WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostRatings
[resolved] Locked ratings in loop widget (2 posts)

  1. BPweba
    Member
    Posted 2 years ago #

    Hellow

    Im using simple loop for displaying thumbs, title and stars in sidebar("top 5").

    My code:
    '<?php $my_query2 = new WP_Query('r_sortby=highest_rated&r_orderby=DESC&showposts=5&cat=4,5,6,7');
    while ($my_query2->have_posts()) : $my_query2->the_post(); $do_not_duplicate = $post->ID; ?>
    <div id="top5">
    " title="<?php the_title_attribute(); ?>" ><?php echo get_the_post_thumbnail($post->ID, 'top-post-image'); ?>
    "><?php the_title(); ?>
    <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
    </div>
    <?php endwhile; wp_reset_query(); ?>'

    I'd like to display (locked) image of ratings and not normal (live) ratings.

    Thanks for any help ;)

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

  2. BPweba
    Member
    Posted 2 years ago #

    I found solution here it saved me some time :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic