pascalleu
Member
Posted 5 years ago #
Hello together!
I use wordpress since a while, but I still don't know, how I can sort the comments. I want that the newest entries are on top and not on the end of the site.
As well, I want the comment form on top of site and not after the comment posts.
Is there a way to configure that?
thanks very much for your help,
Pascal
pascalleu
Member
Posted 5 years ago #
Hello again... is there know one how knows a solution? ;)
best regards,
Pascal
etechsupport
Member
Posted 5 years ago #
The most recent enteries appears at the top of the blog, I quite don't understand why your new enteries comes at the end. Check your setting.
hes not interested in the order of posts. hes asking about the comments.
to the OP: the display of comments is handled inside wp-includes/comment-functions.php ... take a look at sql:
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND comment_approved = '1' ORDER BY comment_date");
change the order as you see fit, maybe tack on a ASC or a DESC
samanathon
Member
Posted 5 years ago #
Thank you so much! I was looking for this answer for a while!!