A year ago today

I added the “A Year Ago Today” Plugin to the site. Use it by adding the following Smarty tag to your site template (ie. in index.tpl)

{todayayearago heading='<h1>A Year Ago</h1>’}

There are a number of differences between this plugin and the original:

  1. The “heading” part is the heading displayed if there are any posts, otherwise nothing is displayed.
  2. If no title exists for the old entry, then an extract of the old entry is printed.
  3. I fixed a bug with the $siteurl variable.

Unfortunately, there were no posts on 2002-04-25, but there were on 2002-04-26 so you’ll see them pop up tomorrow!

By Donncha

Donncha Ó Caoimh is a software developer at Automattic and WordPress plugin developer. He posts photos at In Photos and can also be found on Twitter.

Leave a Reply