PHP Archives

How to calculate elapsed years from the current time in WordPress

I’ve implemented a neat feature on the front page of my other website: it calculates how long Julia and I have been married. Rather than this being one of those items I will certainly forget to update in the future, it uses a shortcode in the regular page text to calculate this value. The WordPress … Read more