Support » Plugin: WP-PostRatings » paginate the ranking

  • Resolved BushidoPT

    (@bushidopt)


    Hi Lester great plugin
    I have a question, is it possible to paginate the list.
    I explain, in my website i have almost 10000 posts and in some ranked lists i’m showing more than 100 posts and their respective thumbnails. So, is it possible to show the first 30 posts in one page then in the next page of the same post another 30 and so on? If so, how?
    I’m currently working in my test site but hoping to implement your plugin in the live one. Sorry the English, it’s not my main language
    Best regards 😉

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • i have tried with the code below but with no luck,
    The correct number of pages appears, but the list is the same in every page

    <ul>
    <?php
    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query();
    $wp_query->query('showposts=3'.'&paged='.$paged);
    ?>
    <?php if (function_exists('get_highest_rated')): ?>
        <ul>
            <?php get_highest_rated(); ?>
        </ul>
    
    <?php endif; ?>
    </ul>
    Plugin Author Lester Chan

    (@gamerz)

    BushidoPT: you can’t paginate that. Use

    <ul>
    <?php
    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query();
    $wp_query->query('r_sortby=highest_rated&r_orderby=desc&showposts=3'.'&paged='.$paged);
    ?>
    <?php the_title(); ?> - <?php the_ratings(); ?>
    </ul>

    Thanks, Resolved my question here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘paginate the ranking’ is closed to new replies.