WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Show original post date? (3 posts)

  1. Dutchintouch
    Member
    Posted 1 year ago #

    I use a 'last updated' date throughout my site. However, I would also like to show the date a post was first published.

    How can I do that?

  2. bcworkz
    Member
    Posted 1 year ago #

    Your template probably is using a tag like the_modified_date() to display the last updated date. Perhaps like this:
    Post last updated on <?php the_modified_date(); ?><br>

    You will want to add in the tag the_date() , perhaps like this:
    Post last updated on <?php the_modified_date(); ?> First published on <?php the_date(); ?><br>

    Or maybe the other way around, whatever works for you.

  3. Dutchintouch
    Member
    Posted 1 year ago #

    Thanks, that works!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags