Hi all,
I would like to sort blog posts by number of likes so that those posts with the most number of likes are displayed first. Is there any way of doing this?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Gordon@glayard
Gordon - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
You must log in to post replies.Thanks RvR, I'm not sure where the php file that handles blog display is to be found.
You can test it on your test site by changing this file:
Use the above code instead of $content:
But there's a principle Don’t Modify Core.
So it's a reason to start the developing your own custom plugin.
Then you can put this code there.