A
A
altblog2012-12-25 09:48:17
SQL
altblog, 2012-12-25 09:48:17

Output of articles with exact rating

For WordPress, there is a popular WP-PostRatings plugin with which you can rate articles. How to make it so that you can only display posts with a certain rating, for example, you click on the link "1 point" and all posts that have a rating from 1 to 1.99 are displayed. You press "2 points" records with a rating from 2 to 2.99 are displayed. The plugin can display the most popular and the most unpopular. And this is how he can't. I think that this can be done using a Sql query, but I'm not friends with it :(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2016-10-11
@altblog

logically: you need to get variable data from the rating (by the get_posts or vp-question loop), and then display only those with the "necessary" rating.
read about get_posts cycles, about what we get from post-ratings, and it’s worth figuring out sql queries in any way :)
It’s a matter for a couple of hours:
all the more you need only a Select query =)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question