WordPress.org

Ready to get started?Download WordPress

Forums

Comments in descending order for 1 single page (7 posts)

  1. selder2
    Member
    Posted 8 years ago #

    I'd like the entries of my giestbook (which is a normal WP page with comments) to be displayed in descending order (last one first)

    I've found out that I can do that by adding "DESC" to ... ORDER BY comment_date"); in /wordpress/wp-includes/

    But that changes the order of the comments for all pages and posts...

    Is there a way to have descending comments for 1 certain page, and all the other pages and posts ascending???

  2. if (is_page('42')) { ...

  3. selder2
    Member
    Posted 8 years ago #

    doh! gonna try that out now :p

  4. selder2
    Member
    Posted 8 years ago #

    mm ... ok, I thought it was simple, but it isn't :p

    I'm using a standard comment-functions.php and WordPress 1.5.2. Could you paste the complete code and where exactly to insert it in that comment-functions.php?

    the pagenumber of my guestbook is 17 ...

  5. selder2
    Member
    Posted 8 years ago #

    mm, got it ... i don't know if it's the nicest solution and sleekest code, but it works :p

  6. sigsol
    Member
    Posted 7 years ago #

    Custom query string plugin fixes this for me!

  7. mlavdh
    Member
    Posted 7 years ago #

    Hello i'm seacrching for the same thing here but im not that good in creating my own code. I,m asking can you place the code here and in wich php file you must put it in.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags