wrong comment date display in front end (5 posts)

  1. gracebarreiros
    Posted 6 years ago #

    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!

  2. esmi
    Forum Moderator
    Posted 6 years ago #


    <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

  3. MouseClicks
    Posted 6 years ago #

    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.

  4. Michael
    Forum Moderator
    Posted 6 years ago #


    what is your code in comments.php?

  5. MouseClicks
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.