WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Having the post updated date instead of the original post date (2 posts)

  1. netflow
    Member
    Posted 3 years ago #

    Hey everyone, get_post_time is used to display the original posting date in an RSS feed, is there a similar something I can use to display the date which the post was last updated instead of when it was originally posted?

    The line I am currently using is this: <?php echo mysql2date('M d Y', get_post_time('Y-m-d', true), false); ?></title>

    and it displays the original posting date regardless of how I update it

  2. netflow
    Member
    Posted 3 years ago #

    Ah, solved it..

    replaced this: get_post_time with this: get_the_modified_time

Topic Closed

This topic has been closed to new replies.

About this Topic