Unable to sort when I have multiple sort filters (2 posts)

  1. greenhoe
    Posted 3 years ago #


    I have a website where I'm trying to add the ability to sort my posts by views, rating (from the wp-PostRatings Plugin) and Date. I made this list.

    <li><a href="<?php query_posts($query_string.'&r_sortby=highest_rated&r_orderby=desc') ?>">Highest Rated</a></li>
    <li><a href="<?php query_posts('v_sortby=views&v_orderby=desc') ?>">Most Viewed</a></li>
    <li><a href="<?php query_posts($query_string.'&order=ASC') ?>">Date</a></li>

    Each query works when I I have them by themselves although when I add all of them together once you click on say the sort by Views your unable to sort by anything else after that. So which ever one you choose to sort by first it stays that way even if you try to sort by a different method. I'm not sure if something needs to be reset or what.



  2. nantha
    Posted 3 years ago #

    Have anyone resolve this? have you green hoe? me too need to solve this

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic