2

I've been looking trying to find an answer as to wether it is possible to get wordpress to display if a post has just been added(published) or if it was simply updated?

(This is to add on a homepage, to differentiate between a new post and one that was updated.)

2
  • 5
    Comparing post_date vs post_modified can be an option
    – Sisir
    Jan 17, 2015 at 16:34
  • 1
    you could post that as the answer
    – Tom J Nowell
    Jan 17, 2015 at 16:49

1 Answer 1

2

Yes.

get_post_modified_time : Retrieves the time at which the post was last modified.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.