Skip to content

Instantly share code, notes, and snippets.

@ville6000
Created January 19, 2016 09:27
Show Gist options
  • Select an option

  • Save ville6000/38f9bd55cdccd39ff98e to your computer and use it in GitHub Desktop.

Select an option

Save ville6000/38f9bd55cdccd39ff98e to your computer and use it in GitHub Desktop.
Get human readable time difference in WordPress
<?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment