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:
query_posts("gdsr_sort=rating"); query_posts("gdsr_sort=review&sort_order=asc"); query_posts("gdsr_sort=rating&gdsr_multi=3"); query_posts("gdsr_sort=votes&sort_order=asc&gdsr_multi=3");
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.
Please contact us to notify the damage of this content if you find this content corrupted/missing/broken.
- How to Get Posts in Category
- Auto Social Poster Error : You Do Not Have Sufficient Permissions to Access This Page
- How to Enable Passthru() in Php.ini
- IntenseDebate vs Disqus