2014-12-04 63 views

回答

0

功能get_comments();有一个排序依据的说法,你可以为了改变顺序传递它们所示:

$orderby 
(string) (optional) Set the field used to sort comments. 
Default: comment_date_gmt 

$order 
(string) (optional) How to sort $orderby. Valid values: 
'ASC' - Ascending (lowest to highest). 
'DESC' - Descending (highest to lowest). 
Default: DESC 

然后,您应该能够编辑里面的comments.php模板文件的HTML或者single.php,然后用这个值对自己做一个POST,改变查询。