How to Sort Post by Gd Star Rating

in Wordpress Plugins

Currently I develop a HYIP rating and monitoring website based on wordpress. At this site I want to sort post by post rating value from Gd Star Rating, so I need to modify date-based sorting as default wordpress function. Luckily GD Star Rating from 1.5.0 supports reordering posts on any page using ratings and reviews data, from both standard and multi ratings. Sorting can be done using ratings, number of votes or review ratings. So I just need a few modification into my current theme (based on arras theme)

You can use some gd star rating variables to modify queries used by query_posts function. Here are few examples:


Source : How to Reorder Posts

So, now I just need little modification into my custom Arras Theme, to get my articles sorting by post rating value from gd start rating

Now HYIP rating and monitoring site based on WordPress sorted by rating post value. You can see that site here at Best Make Money Information.

To understand query_post function you can read this reference:

Query Post Reference
Query_posts can be used to control which posts show up in The Loop. Common uses might be to: Display only a single post on your homepage, show all posts from a particular time period, show the latest post (only) on the front page, change how posts are ordered, etc.

closeThis post was published 5 years 19 days ago which may make its no longer appropriate to current circumstances, this post may even be damaged or corrupted. This site is not responsible for any misunderstanding.
Please contact us to notify the damage of this content if you find this content corrupted/missing/broken.

Related posts:

  1. How to Get Posts in Category
  2. Auto Social Poster Error : You Do Not Have Sufficient Permissions to Access This Page
  3. How to Enable Passthru() in Php.ini
  4. IntenseDebate vs Disqus

Use the social buttons below to add it on your favorite social sites to get the latest updates. Not sure about these options? Learn more about RSS and social bookmarking

{ 5 comments… read them below or add one }

1 Andrei A. March 6, 2010 at 11:00 am

great post.thx


2 seanx820 June 30, 2010 at 9:53 am

awesome, trying it out now, good post


3 Lewis September 15, 2010 at 6:47 pm

does anyone know how to list by star rating for posts in the last week (or other time period)?


4 Lewis October 7, 2010 at 6:37 am

Don't worry, I found it – you can do it with the widget :)


5 Capucine May 24, 2012 at 4:57 pm

Hey !
Thanks for this post, but does anybody knows how to order post by rating IN the category.
Because with <?php query_posts("gdsr_sort=rating&sort_order=desc"); ?>, all posts are considered… even if they are not in the same catagory….

Thx for help :)


Leave a Comment

Previous post:

Next post: