WordPress.org

Ready to get started?Download WordPress

Forums

How to show the date and time of the latest post on headline? (3 posts)

  1. Zhaofeng
    Member
    Posted 6 years ago #

    Anyone has an idea of how to show the date and time of the latest post on headline? I would like to display the latest update time of the entire site upfront. Thank you in advance!

  2. strikedamic
    Member
    Posted 6 years ago #

    Yeah, I'd like to know that too, please, does anyone know?

  3. strikedamic
    Member
    Posted 6 years ago #

    Hey, I just figured out.

    Open the file with the code of the page you want the date in in an editor and copy this code where the date shall be shown:

    <?php the_post;
          the_time('j. F y');
    ?>

    Remember to adjust the date format to your needs, though. Find more info about that in this wordpress article.

Topic Closed

This topic has been closed to new replies.

About this Topic