Title: Rating sorting
Last modified: August 30, 2016

---

# Rating sorting

 *  [elisite](https://wordpress.org/support/users/elisite/)
 * (@elisite)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/rating-sorting/)
 * Hi,
    When displaying archives of a custom post type (in a loop), I need to sort
   the posts by rating. What should I specify as the ratings custom key in the WP
   query? Is there a different way of doing so?
 * Thanks!
    Eli
 * [https://wordpress.org/plugins/multi-rating/](https://wordpress.org/plugins/multi-rating/)

Viewing 1 replies (of 1 total)

 *  [davidwtalley](https://wordpress.org/support/users/davidwtalley/)
 * (@davidwtalley)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/rating-sorting/#post-6717514)
 * Hey, elisite.
 * I had the same issue. I had thoughts of using the first function, Sort WP Loop,
   on this page. Daniel, does that sound like the right approach?
 * [http://danielpowney.com/docs/code-snippets-api-samples/](http://danielpowney.com/docs/code-snippets-api-samples/)
 * Also, I would like to validate that I can get that to work before buying the 
   Pro version (which looks like a very solid investment, btw!). Would I need to
   make changes to that function to work with the public version?

Viewing 1 replies (of 1 total)

The topic ‘Rating sorting’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/multi-rating_d6dfe6.svg)
 * [Multi Rating](https://wordpress.org/plugins/multi-rating/)
 * [Support Threads](https://wordpress.org/support/plugin/multi-rating/)
 * [Active Topics](https://wordpress.org/support/plugin/multi-rating/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multi-rating/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multi-rating/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [davidwtalley](https://wordpress.org/support/users/davidwtalley/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/rating-sorting/#post-6717514)
 * Status: not resolved