If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #20368

    Hi all,

    can anyone give me a hint how it is possible to display a timestamp to an article?

    Thanks in advance



    Hi E11,

    In your includes>loop-index.php file look for these lines:

    <span class='month'><?php the_time('M') ?></span>
    <span class='year'><?php the_time('Y') ?></span>

    You can add a third time option there using the format you like. See: http://codex.wordpress.org/Function_Reference/the_time




    Hello Devin,

    thanks for the response and the tipp.

    My problem currently is, that there exist no timestamp.

    I dont find any option where I could enable it.

    In other themes I saw such an option.

    Maybe I’m blind….


    That is correct. I was suggesting you add one manually in that file using the same format. Using the codex entry as a means to have a key to decide how you want the time shown. IE

    <span class='time'><?php the_time('g:i a'); ?></span>
    <span class='month'><?php the_time('M') ?></span>
    <span class='year'><?php the_time('Y') ?></span>

    The time class would most likely need a bit of styling, but maybe not. There isn’t a backend option from the theme to display this so it has to be added into the theme files.


    Works like a charm!

    Cheers for the assistance.

    Great support!

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

The topic ‘How to: Adding a Timestamp to an article’ is closed to new replies.