Below you will find pages that utilize the taxonomy term “javascript”
Articles
Include Automatically Updating Ages in WordPress Posts
I often need to put the ages of people and events in a WordPress post, and the last thing I want to do is to come back and update them each year when the age(s) will no longer be correct.
I’ve used a couple of methods to keep ages up-to-date in my clients' WordPress content. One uses PHP, and the other is Javascript-based. My personal favorite is using PHP, but I’ll show you both methods here.