Below you will find pages that utilize the taxonomy term “day”
In an earlier post, I described a method of including an automatically updated age in a WordPress post using a shortcode.
In this post, I’ll show you another shortcode based on PHP’s DateTime extension and the diff method that will generate a string composed of the number of years, months, and days from a specified date.
The Code To include an automatically updating string composed of the years, months, and days from a specified date in WordPress using PHP, start by adding the following code to your child theme’s functions.
Lost Lake/Mt. Hood photo by Schick at Morguefile.com.