我相信最简单的方法是使用javascript。它将在每个评论列表中导航并只显示最后一个按钮。类似于:
jQuery(document).ready( function($){
//Hide all buttons
$(\'.comments li .reply-button\').hide(0);
//Navigate through all comments
$(\'.comments li\').each( function() {
//Lets check if there is children comments in this one
if (! ($(this).children(\'.children\').length > 0)) {
//Don\'t have, so let\'s show this button
$(this).find(\'.reply-button\').show(0);
}
})
})