Support » Fixing WordPress » wrong comment date display in front end

  • I am using Word Press 2.8.3
    This is my first site using this amazing tool. But I have a serious problem: the comments dates are ok in the back end, but display wrong in the front end.

    Funny enough the day and year are ok, but the month is wrong – comments that were posted in “june”, “july” and “august” all appear as if they were posted in “may”.

    I have this line of code in comments.php
    [code] <div class=”date”><?php comment_time(‘j’) ?><div class=”month”><?php the_time(‘M’) ?><div class=”year”><?php the_time(‘Y’) ?></div></div></div>[code]

    Also, I would like to know if there is a way to have the latest comments displaying on top.

    Please help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi


    Forum Moderator


    <div class="date"><?php comment_time('j') ?><div class="month"><?php comment_time('M') ?><div class="year"><?php comment_time('Y') ?></div></div></div>

    To reverse the comments display, go to Admin/Settings/Discussion/Other comment settings

    I am having the same problem and tried the code given by esmi but it didn’t change the comment post dates. I’ve tried a few other codes as well, but the front end still shows one date which is the wrong date. I just checked and found that all comments for every post are all dated nn the front end the date of the original post even though the original date of post is correct in the admin. This particular site uses WP 2.9.2. Anyone have any ideas how to fix this?

    I have my comments set in the admin to display newer to older yet the blog displays older to newer.



    Forum Moderator


    what is your code in comments.php?

    I found the answer to my problem, maybe it will help you. I tried uploading my original theme files one by one and found that after uploading the original comments.php my dates returned to what they should be.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wrong comment date display in front end’ is closed to new replies.