Support » Plugin: Comments Archive » Remove hour and change the date structure

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author roycegracie

    (@roycegracie)

    i bilive you can modify the way it will be presented in your “General Settings” on the dashboard

    I made the following changes to revise how the date is shown. I added the $date and $time variables and used them in the display code.

    foreach ( $comments as $comment ) {?>
         <?php $date = mysql2date(get_option('date_format'), $comment->comment_date); ?>
         <?php $time = mysql2date(get_option('time_format'), $comment->comment_date); ?>
    	 <u>Posted in: <a rel="canonical" href="<?php echo get_permalink($comment->comment_post_ID); ?>">
        <?php echo get_the_title($comment->comment_post_ID); ?></a>, on <?php echo $date?> at <?php echo $time?></u><br/>
        <strong><?php echo($comment->comment_author);?></strong>: <?php echo($comment->comment_content);?><br /><br />
    Plugin Author roycegracie

    (@roycegracie)

    thank you rcstanl ! i will add this code to the next version

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove hour and change the date structure’ is closed to new replies.