With the latest release of my Countdown plugin, I had a neat idea that I figured I'd share with everyone.
So, here's a quick way to display how long your blog has been around, with the Countdown and Entry plugins:
This blog has been up for <MTEntry id="1">
<MTCountup date="[MTEntryDate format='%Y-%m-%d %H:%M:%S']">
<MTCountupIfYears>
<MTCountupYears> years,
</MTCountupIfYears>
<MTCountupIfWeeks>
<MTCountupWeeks> weeks,
</MTCountupIfWeeks>
<MTCountupIfDays>
<MTCountupDays> days,
</MTCountupIfDays>
<MTCountupIfMinutes>
<MTCountupMinutes> minutes,
</MTCountupIfMinutes>
<MTCountupIfSeconds>
<MTCountupSeconds> seconds
</MTCountupIfSeconds>
</MTCountup>
</MTEntry>
Obviously you do not have to use the Entry plugin, you just need a way to select the first entry in your blog. I recall seeing a way to do it with the SQL plugin, but I think this way just looks cleaner. Or maybe I am just weird. :)
It could also be trimmed down quite a bit too. You do not have to use all the MTCountupIf tags like I did.
this is a great plugin!! is there any way to put months in there as well?
where is MTCountupIfHours?