I want display date based on how much time has passed since, i. e. Posted 12 minutes ago

1 Answer
1

This is quite simple: just replace the get_the_date() or the_date() with

echo human_time_diff(get_the_time('U'), current_time('timestamp')) . ' ago';

Leave a Reply

Your email address will not be published. Required fields are marked *