Results 1 to 2 of 2

Thread: David? Where does it go? LOL WP-Ratings Question...

  1. #1
    Thread Starter
    Senior Member jakesterz's Avatar
    Join Date
    Aug 2009
    Posts
    194
    Thanks
    0
    Thanked 1 Time in 1 Post

    David? Where does it go? LOL WP-Ratings Question...

    Per this thread from another forum, I'm asking my theme author. lol

    http://forums.lesterchan.net/index.php/ ... 178.0.html" onclick="window.open(this.href);return false;

    This is from LesterChan's WP-Ratings plugin. It should be possible to have posts display according to their star rating is we insert the line of code in the right spot:

    Code:
    <?php query_posts($query_string.'&r_sortby=highest_rated&r_orderby=desc') ?>
    He says "yes, that is correct, placed it before if(have_post()) line. Note that I am using the default theme as an example."

    Anyone have an idea where it would go in the index.php for ClassiPress?

  2. #2
    Thread Starter
    Senior Member jakesterz's Avatar
    Join Date
    Aug 2009
    Posts
    194
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: David? Where does it go? LOL WP-Ratings Question...

    Okay, well, nevermind, David!

    LOL, I figured it out.

    Anyone interested in theis, all you need to do is place the line in your index.php:

    Code:
    <?php query_posts($query_string.'&r_sortby=highest_rated&r_orderby=desc') ?>
    I put it just above this and it works great.

    Code:
    <div class="clear"></div>
    There is one issue. It only shows posts that have either been rated OR are published AFTER the plugin is activated. So you'll need to republish all the ads. I found the easiest way is to use the bulk edit in the edit posts and set their status to "published" and update.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Product Review or Ratings
    By icecubejackal in forum ClassiPress General Discussion
    Replies: 14
    Last Post: January 9th, 2012, 06:35 PM