Magic Dates

Auto increased dates through the power of shortcores and Magic Dates plugin!

Author:Gerasimos Tsiamalos (profile at wordpress.org)
WordPress version required:5.0
WordPress version tested:5.4.1
Plugin version:1.3
Added to WordPress repository:03-11-2011
Last updated:02-06-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:4
Plugin URI:http://www.cssigniter.com
Total downloads:2 156
Active installs:200+
plugin download
Click to start download

If you are like me, you are probably responsible for updating content in (some) of your clients’ sites. Have you ever had pieces of content like these:

  1. “This is my 8th year in this industry […]”
  2. “Our little shop is up and running for 11 years […]”
  3. “9 years ago we decided to open our shop […]”

Then, at some point next year your client calls and tells you to update the “11 years” to “12 years”. Wouldn’t be great if these number could be auto-increased?
And that’s where “Magic Dates” comes to play.

How to use it:

Whenever you find yourself writing content in the editor, at the moment that you need an auto-increased number of years use the plugin like this:

(Example current year: 2020)

[magicdate]2005[/magicdate] => This will produce 15

If you want an ordinal number (1st, 2nd, 3rd etc) use it like this:

[magicdate ordinalize=’true’]2008[/magicdate] => This will produce 12th

Use the [magicdays]YYYY-mm-dd[/magicdays] shortcode to calculate the number of days between today and the given date

Easy eh?