我想先列出我的最新评论,但似乎没有任何效果。在我设置的仪表板中
在里面comments.php
我有<?php wp_list_comments(array(
\'reverse_top_level\' => true,
\'callback\' => \'custom_comments_callback\',
\'avatar_size\' => 50,
\'reply_text\' => \'Reply to this comment\'
)); ?>
并且在functions.php
我补充道if (!function_exists(\'custom_reverse_comments\')) {
function custom_reverse_comments($comments) {
return array_reverse($comments);
}
}
最早的评论仍显示在顶部。例如,请参见introduction to SPSS. 奇怪的是,在我的网站的本地版本上,使用完全相同的设置/文件,最终的结果是不同的(更好但并不完美)。