I REALLY hate to be a bother yet again, but since you were so helpful with my other issues, and since I feel I’ve reached the extent of what googling and fiddling can get me, I’ll post my problem here hoping you’ll save me.
What I am looking to achieve, is to create a function that shows the top voted images. I came across this thread: http://wordpress.org/support/topic/plugin-nextgen-gallery-voting-need-help-displaying-the-top-voted-images?replies=48
And after reading through it all, I went with the sollution you provided in one of your last posts. This is the code I’m using (Slightly modified): http://pastebin.com/97xTdQmJ
Now I have 2 problems. First, this seems create blank entries in the list. And I mean completely blank, none of the data that should be in the array for that entry is there, it all comes back empty. The other entries that it displays, all expected data is there.
The second problem I have, is that if I order by avg, it seems to make the list randomly. The image that has 52 likes and 2 dislikes, shows up AFTER other entries that have only 1-3 likes and 0-1 dislike. I did the math myself, and it seems like AVG should be likes * 100 / total # of votes, but it doesn’t seem to be sorting them that way.
- The topic ‘A problem with filtering top voted images’ is closed to new replies.