• My comments currently look like this:

    Posted by Matthew on November 30, 2006 (2 days ago) at 11:09 am

    This is my code in the comments.php:

    <?php foreach ($comments as $comment) : ?>

    <li class=”commentbody” id=”comment-<?php comment_ID() ?>”>
    Posted by <?php comment_author_link() ?>
    <?php if ($comment->comment_approved == ‘0’) : ?>
    Your comment is awaiting moderation.
    <?php endif; ?>
    on <?php comment_date(‘F j, Y’) ?> at <?php comment_time()?><?php edit_comment_link(‘e’,”,”); ?>

    <div class=”commentcount”><?php echo $relax_comment_count; ?></div>

    <?php comment_text() ?>

    <?php $relax_comment_count++; ?>

    <?php endforeach; /* end for each comment */ ?>

    How can I get rid of (2 days ago)?? I don’t see anywhere in the code that it is doing this though it is outputting it. Please help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter matthewkc

    (@matthewkc)

    does anyone have any thoughts on this?

    thanks.

    its not in that file, its in single.php

    /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>

    read what single php says at about line 23 and below.

    while that affects post times, you might have downloaded the time-since-plugin which is making the changes to everything using the_time.

    Thread Starter matthewkc

    (@matthewkc)

    Thanks – that worked like a charm! Tell me, what exactly is the difference between the single.php and the attachment.php pages?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘time date format in comment output’ is closed to new replies.