Alan Levine recently posted his description of how to add an overview to your blog of postings from previous years on the same date as today. He turned it into a small WordPress plugin, allowing you to add such an overview using a shortcode wherever in your site you want it. It was something I had on my list of potential small hacks, so it was a nice coincidence my feedreader presented me with Alan’s posting on this. It has become ‘small hack’ 4.

I added his WP plugin, but it didn’t work as the examples he provided. The overview was missing the years. Turns out a conditional loop that should use the posting’s year, only was provided with the current year, thus never fulfilling the condition. A simple change in how the year of older postings was fetched fixed it. Which has now been added to the plugin.

In the right hand sidebar you now find a widget listing postings from earlier years, and you can see the same on the page ‘On This Blog Today In‘. I am probably my own most frequent reader of the archives, and having older postings presented to me like this adds some serendipity.

From todays historic postings, the one about the real time web is still relevant to me in how I would like a social feed reader to function. And the one about a storm that kept me away from home, I still remember (ah, when Jaiku was still a thing!).

Adding these old postings is as simple as adding the shortcode ‘postedtoday’:

There are 2 posts found on this site published on June 5

  • June 5, 2018
    • Suggested Reading: Imbecility, Replication Crisis, IoT and more Some links I thought worth reading the past few days Initial circumstances mostly trump intrinsic capabilities. Basically the evolutionary space available. Delayed gratification is based on affluence at the outset, not indicative of doing better in future: Why Rich Kids Are So Good at the Marshmallow Test Can’t afford it, society without social contract, techno-determinism, […]
  • June 5, 2008
    • Free public data Last week at the PolitCamp Graz I had the pleasure to meet Keith Andrews, who’s a professor there, and attend his session on how to unlock and use general data that has been gathered and paid for with tax payers money. Our public data. Hans Rosling has some pretty compelling examples of what you can […]

4 reactions on “Adding an ‘On This Blog Today In…’ Widget

  1. Thanks again for being an early trier if the plugin. I’m not quite sure what the difference was, perhaps the context of the query loop being different in a sidebar. As long as it works things are good.

Comments are closed.