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 4 posts found on this site published on April 15

  • April 15, 2019
  • April 15, 2018
    • Revisiting the Personal Presence Portal With my increased blogging in the past 6-7 months, I’ve been thinking again about the role this blog is serving and has served since 2002. A long time ago, in the spring of 2004, when the likes of Facebook and Twitter didn’t exist, I wrote about that richer representation as ‘a personal presence portal‘ and […]
  • April 15, 2013
    • Going to Aarhus Data Drinks Later this week I will drive up to Aarhus in Denmark, to participate in the Aarhus Data Drinks. As I started the Copenhagen Data Drinks last October, of which the Aarhus meet-up is a spin-off they kindly invited me over to visit as the original pollinating bee. Data Drinks (a name I adopted from Alper […]
  • April 15, 2003
    • Let’s meet at Blogtalk For those of you who, like me, plan to go to Blogtalk, in Vienna next month, a forum has been opened to meet those who plan to come, and perhaps set up some meetings in advance. This will help make you the most of your time in Vienna.

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.

    Mentions

  • 💬 Ton Zijlstra
  • 💬 Ton Zijlstra
  • 💬 Weekly Hacks – Interdependent Thoughts