I'd like to have my newest comments listed first but nothing seems to be working. In the dashboard I set
In comments.php
I have
<?php wp_list_comments(array(
'reverse_top_level' => true,
'callback' => 'custom_comments_callback',
'avatar_size' => 50,
'reply_text' => 'Reply to this comment'
)); ?>
And In functions.php
I added
if (!function_exists('custom_reverse_comments')) {
function custom_reverse_comments($comments) {
return array_reverse($comments);
}
}
And still the oldest comments are shown on top. For an example, see this introduction to SPSS.
Oddly, the final result is different (better but not perfect) on a local version of my website with the exact same settings/files.