-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to sort by votes in Elements API #5
Comments
The literal translation of Upvote::$plugin->upvote_query->orderByTally($elements); https://github.com/doublesecretagency/craft-upvote/blob/v2/src/variables/UpvoteVariable.php#L247 Give that a shot! |
Hi, I am still looking for a way to achieve this in Elements API. Your translation didn't help much so sar, I have no clue how to implement it ;-( This is my endpoint from Elements API, where I retreive the entries. I would like to get te latest entries sorted by votes, so not only sort the latest entries/result, if you know what I mean :-)
|
I would like to create a feed with entries sorted by votes, so I would like to know how to translate this example to PHP:
Thanks!
The text was updated successfully, but these errors were encountered: