2014-12-04 85 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,改變查詢。