PHP date "N days ago"

Posted in: ionMag
Post count: 3

Hello! How can I change the default date format (m.d.y) to a new “n days ago” or “yesterday” style? I found a good piece of code, especially for WordPress, but what file from theme directory I need to choose for edititng? Thanks.

Simion C.
Post count: 383


I believe you are referring to something like this
This will require you to modify the post template used (default post template->loop-single.php or post template 1->loop-single-1.php) liek this
This is the result –


Post count: 3

Yeah, thanks. It works!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘ionMag’ is closed to new topics and replies.