Created
January 31, 2013 01:31
-
-
Save szbl/4679126 to your computer and use it in GitHub Desktop.
One line of code that will allow you to reverse the order of comment output from ascending to descending post date.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// you can do this in your functions.php file, a plugin file | |
// or even in your theme before comments are displayed: | |
add_filter( 'comments_array', 'array_reverse' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Havent had any luck with this. Can anyone tell me where to put it exactly?