Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Reverse order for Vanilla comments in Wordpress
todosteam
New
Comments
I think it should be possible, if the Comment Model fires the right events. You would have to implement an event handler in your theme hooks file.
My shop | About Me
So it's my wordpress theme who is reversing the comments order?
No, it's your Vanilla theme that has to implement the right event handlers, sort the data and return it sorted. If you are using the standard theme, you can just make a copy of it and implement the theme hooks files (obviously, coding is required).
My shop | About Me
Where in the theme is the comments for WP/VF embed order happening? I saw an $options parameter in the WP plugin code, but don't know if that can reverse sort.
I know that you can place a $Configuration in the forum config.php to change the sort order of discussions . asc would be ascending .
$Configuration['Vanilla']['Discussions']['SortDirection']= 'desc';
Not sure if there is one for comments but there is a plugin I think it needs some mods to work
http://vanillaforums.org/addon/reversecommentsort-plugin
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
thanks. tried $Configuration['Vanilla']['Comments']['SortDirection']= 'desc'; and 'asc' and doesnt seem to change anything.
Haven't tried that plugin, but the comments in the normal forum display in the desired order (newest at the bottom). Thinking since the normal forum displays in the desired order, something in the WP plugin is causing the embedded comments to show in reverse order (newest at top).
@an2050, Vanilla 2.1b2 has a sort order option for the embedded comments feature in the "Blog Comments" admin dashboard section (
http://example.com/index.php?p=/dashboard/embed/comments/settings/
).Add Pages to Vanilla with the Basic Pages app