How to display date such “x 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';

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)