WordPress.org

Ready to get started?Download WordPress

Forums

Ascending Comments (2 posts)

  1. JimP
    Member
    Posted 10 years ago #

    I just instaled the newest version of WordPress 1.2 Mingus. I've installed in, configured it, and edited the template. The absolute LAST thing I need to do is make the comments display as Ascending (showing the first comment on top, right?). I see no option for this in the administration area. Am I missing something?

  2. Anonymous
    Unregistered
    Posted 9 years ago #

    It's sounds strange to me. In my instalation the first comment display first and the last comment display last. BTW, i need to change this to see my last comments first, and do this putting the word "DESC" after the SQL instruction on both php archives (wp-comments.php and wp-comments-popup.php)
    From
    $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$id' AND comment_approved = '1' ORDER BY comment_date");
    To
    $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$id' AND comment_approved = '1' ORDER BY comment_date DESC");

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.