WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostRatings
[resolved] Add highest rated in index.php ( title + permalink + thumbnail ... ) (5 posts)

  1. Dlaythem
    Member
    Posted 3 years ago #

    Hello there,

    i'm using the "wp-postratings" plugin .. and i'm trying to add the ( Highest Rated ) in my index.php file

    can anyone give me the code ?

    i was thinking it would be something about ( wp_query )...

    thank you !

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

  2. Dlaythem
    Member
    Posted 3 years ago #

    Up Please !!

  3. chadrew
    Member
    Posted 3 years ago #

    Try the FAQ, it explains how to display highest rated post(s) using get_highest_rated()

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

  4. Dlaythem
    Member
    Posted 3 years ago #

    @chadrew, Thank you very much .. i found what i'm looking for :

    <?php if (function_exists('get_highest_rated')): ?>
    <?php query_posts($query_string.'&r_sortby=highest_rated&r_orderby=desc&post_per_page=5') ?>
    <?php while(have_posts()) : the_post(); ?>
    
    <?php endwhile; ?>
    <?php endif; ?>
  5. duskio
    Member
    Posted 3 years ago #

    Hi, did u somehow managed thumbnails?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic