I want display date based on how much time has passed since, i. e. Posted 12 minutes ago
1 Answer
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';