• Howdy,

    After reading through the users guide, I’m still a little stuck on how to do this. I’m trying to sort (rating and votes) within a particular category. I wanted it to be dynamic in the sidebar, so no matter what category I’m in, the same sort link would be in the sidebar to sort by rating and votes within that category.

    Can anyone help me put these two php queries together or is there another way of doing it???

    <?php query_posts($query_string.'&r_sortby=most_rated&r_orderby=desc') ?>
    
    <?php single_cat_title(''); ?>
Viewing 5 replies - 1 through 5 (of 5 total)
  • This code is for some other plugin, not this one.

    Here is the tutorial on reordering posts with GD Star Rating:
    https://www.gdstarrating.com/2009/07/03/how-to-reorder-posts/

    Also, check info files that are included with plugin for full list of supported parameters and values.

    Thread Starter schwooba

    (@schwooba)

    Thanks for the quick reply.

    Can other plugins sort GD Star Rating values?

    As long as you use variables I provided, and you activated WP Query modification feature and GD Star Rating is active you can use them wherever you want.

    Love the plugin….A bit stuck in one area though. I’ve got the widget setup with my post titles in it….It looks great. The only problem is that the widget is showing the same post titles on every page, category, home etc… I would like the widget to be dynamic and show only the post titles from the categories I have them under. Is there type of sort that will accomplish this. I’ve read the link from the post above and it seems it is for reordering posts and not the information in the widget…..I could be wrong though. Any help would be great.

    Thanks……

    Solved the problem……Had to rig it, but it works now. Basically I had to setup multiple instances of the GD star rating widget. Then I used another plugin called widget logic to set each widget to only appear for a specific category. So now the post ratings set in each category appear based on that category only. It works for me cause I only have about 10-20 categories. Probably not a good idea if you have 100 or so categories. I hope this helped someone. Probably not but we’ll see.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: GD Star Rating] – Sort within category your in’ is closed to new replies.