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 3 posts found on this site published on October 21

  • October 21, 2019
    • De meest onthutsende foto van Overheid360 In de (goede en nuttige!) sessie van de VNG over de WOO op Overheid360 eerder deze maand, werden de aanwezigen meerdere vragen gesteld. De laatste, wanneer je denkt dat de implementatie van de WOO afgerond zal zijn, leverde bovenstaande foto op. Ik kan er nog steeds niet helemaal over uit. Het probleem van de WOO […]
  • October 21, 2018
    • Wrapping My Head Around Webmentions Pt3 At IndieWeb Camp Nürnberg today I worked on changing the way my site displays webmentions. Like I wrote earlier, I would like for all webmentions to have a snippet of the linking article, so you get some context to decide if you want to go to that article or not. It used to be that […]
  • October 21, 2009
    • Please Sign: Open Declaration on EU Public Service Information In November the EU ministerial conference will take place in Malmo, Sweden (Sweden currently is the EU chair). One of the things on the agenda there is setting the EU’s strategy for e-government for the next 5 years, until 2015. A number of people [LINK], including myself, think it is very much needed that our […]

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.