Quick Tip: Display Timeago For WordPress If Less Than 24 Hours

advertisement

This small code snippet will help you to display the time ago for WordPress post if your post was published less than 24 hours ago.