• Resolved phemsy

    (@phemsy)


    Please, how can I display time in all my posts and comments. I have read countless fixes that suggested putting some php code lines beside another such as this:

    find
    <?php the_time(‘F jS, Y’) ?>
    before it put this
    Time posted: <?php the_time(‘g:i a’); ?>

    It was suggested that I make that edit in index.php of the template, BUT, there is no such code line or anything close to it in the index.php of template folder or any other index.php file.

    Please someone help me solve this problem. I would appreciate it very much.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    You can search for the following codes in various locations in the theme.

    <a href="<?php the_permalink() ?>"><span class="published updated"><?php the_time(get_option('date_format')); ?></span></a>

    That’s the link for the published date, you can add your time code beside it.

    Thank you

    Thread Starter phemsy

    (@phemsy)

    Thanks Denzel.
    I had seen that code countless times in various locations but did not know it to be the culprit since it looks different.
    It’s been resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display time in all posts’ is closed to new replies.