• How do you get the time to show up for each post? Currently I only get the date. Ive looked through the admin section and cant find an option. Ive always searched for the answer an cant find anything.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Place this code anywhere you would like the time to show in your single.php and index.php template files.

    <?php the_time() ?>

    Thread Starter yourbodega

    (@yourbodega)

    Sweet man thanks. Weird that it’s not implemented.

    Ok now how do you get the author in there?

    Right now the code is this.

    <small><?php the_time(‘F jS, Y’) ?> <?php the_time() ?><!– by <?php the_author() ?> –></small>

    But why doesnt the author show up?

    This code should do the trick, just overwrite your old code with the following:

    <small><?php the_time(‘F jS, Y’) ?> <?php the_time() ?> by <?php the_author() ?> </small>

    Thread Starter yourbodega

    (@yourbodega)

    oh I see, the author code was commented out. Thanks man.

    Why arent there options to turn these on in the admin panel?

    Because you can further specify how the time should be shown (24h/12h, seconds/no seconds etc) – there would be to many settings for these things, and templatemakers wouldnt have the freedom to define these things in their themes.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Time in each post’ is closed to new replies.