Created
January 19, 2016 09:27
-
-
Save ville6000/38f9bd55cdccd39ff98e to your computer and use it in GitHub Desktop.
Get human readable time difference in WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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