Display time in how long ago format in WordPress

http://codex.wordpress.org/Function_Reference/human_time_diff

Since Facebook and Twitter became popular, we saw the timestamp of a post like “35 Minutes ago”, “2 Days ago’, “3 Months ago” all the time. In WordPress your could do that by using human_time_diff function.

Leave a Reply

Your email address will not be published. Required fields are marked *