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';
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';