WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Comment Date showing same as post date (7 posts)

  1. taskemann
    Member
    Posted 1 year ago #

    Hello,
    The date for the each comment is recurring as the same date that the post was made - even though there are a few days, weeks or even months between.

    Here is the comments.php code in Pastebin: http://pastebin.com/MpszzWvd

    I hope someone want to help me with this.

    Thanks,

    Jimmy

  2. I'd need to see the actual template that's generating the comment output.

    Your line 24 -- <?php wp_list_comments('type=comment&callback=mytheme_comment'); ?> -- calls the mytheme_comment() function to render each comment. That function would have the relevant code in it.

  3. taskemann
    Member
    Posted 1 year ago #

    Thanks!

    Here you have it: http://pastebin.com/RxMEs3mL

    Regards,

    Jimmy

  4. You're using

    <time><?php the_time('F j, Y'); ?></time>

    where you should be using

    <time><?php comment_time('F j, Y'); ?></time>

    http://codex.wordpress.org/Function_Reference/comment_time

  5. taskemann
    Member
    Posted 1 year ago #

    Woha! Thanks mate it worked! :D

  6. Awesome. Could you please tick the box on the side to flag this as resolved?

    Thanks!

  7. taskemann
    Member
    Posted 1 year ago #

    Solved!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.