Hi all,
can anyone give me a hint how it is possible to display a timestamp to an article?
Thanks in advance
E11
Hi all,
can anyone give me a hint how it is possible to display a timestamp to an article?
Thanks in advance
E11
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
Regards,
Devin
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!
This topic has been closed to new replies.