Currently using <?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?> to display something like 22 Days ago for the date on my posts but when a post is very old, like over a year it could display something like 556 days ago instead of something like 1 year ago or 3 years ago
How do I get it to display in that format instead of just counting the days?
You have to create a function to calculate the seconds, minutes, hours, days, weeks, years,…
and then add a filter to
the_time:if you need a function to calculate the time, in this post of Jason Bobich you have a good one: A better way to add time ago to your wordpress