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.
<ul> <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> </ul>
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.