WordPress:Display the Post Published Date and Last Modified Date

Published on:
Last updated:

Sponsored Links

This post is also available in: Japanese

I recommend to display both “post Published date” and “Last Modified date”.

The case of the display of only the “Post Published Date”, visitors will stop reading because posts have written old date.
The case of the display of only the “Last Modified Date”, visitors do not know when that article was written.

Display the Post Published Date

<?php the_time('Y/m/d'); ?>

Display the Last Modified Date

<?php the_modified_date('Y/m/d') ?>

more detailed setting

If you want a more detailed settings, please refer to the link below.

Formatting Date and Time-WordPress Codex

About
Kuniyoshi Takemoto is the founder of Amelt.net LLC, and editor of this blog(www.amelt.net).Learn more and connect with me on Google+,LinkedIn(English).


Sponsored Links