I’ve been keeping an online diary for over two years, which is a powered by wordpress with a simple one post per day format. The built in tagging and category systems mean I can organise entries into specific collections, for example this page has all the days when I did riverfly monitoring.
I also have a yearly page view, which visually summarises the year and allows you to click through and browse entries by month and by topic.
But these views are all limited to seeing a single day on a single post. What I really wanted was a single page that would show all the entries for a single week.
So with the help of AI, I built a custom template which serves a weekly view at URLs in the form /2025-week-19 which takes all the content from that week and separates it with headings for each day. The featured image at the top is a random choice from that week’s posts.
At the bottom of the page, I provide some simple next and previous links to allow navigation between weeks.
Once these pages were built, it became a very simple matter to add some redirects for the URLs /this-week and /last-week.
I like to look back over my diary, so a weekly view is quite a comfortable format to browse. I’m very happy with how these pages turned out, and I get them “for free” in future simply by carrying on making daily posts as I do today.
RSS weekly feed
Once I had this online view, I then wanted to go a step further and have a weekly feed that people could subscribe to over RSS. So I created a custom feed that automatically publishes last week’s diary entries every Monday morning as a single feed item.
The RSS URL is:
This felt quite liberating. Suddenly I’m using RSS in a “non-standard” way to aggregate content in a dedicated feed. Almost like a weekly newsletter.
Making this more flexible
The code to do this is not all that long – essentially a few php functions and a single php template in the theme folder. It could be tidied up a bit more, for example the code to generate the RSS content and web page has duplications and inconsistencies.
However, what’s more appealing is the possibilty to create time based topic newsletters by adding in some tags to the underlying queries.
This would allow me to produce, for example, a monthly riverfly newsletter by creating a new endpoint such as /2025-jan-riverfly. And by subscribing to the RSS endpoint associated with that, I could display it on an entirely diffent website by using a newsreader plugin like Feedzy.