• 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pascalleu

    (@pascalleu)

    Hello again… is there know one how knows a solution? ??

    best regards,
    Pascal

    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

    Thank you so much! I was looking for this answer for a while!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘sort comments / form on top’ is closed to new replies.