Twitter style “time ago” dates on posts in wordpress


/ Published in: PHP
Save to your folder(s)

Allows you to display a look like 5 days ago.


Copy this code and paste it in your HTML
  1. Posted <?php echo human_time_diff(get_the_time('U'), current_time('timestamp')) . ' ago'; ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.