If you self-host your WordPress blog, you can do whatever you want. If your blog is hosted at WordPress.com, you’re very limited in what you can customize.
For instance, for years I have wanted to get rid of pingbacks from myself in the “Recent Comments” box on the pages. When I link to older messages, the box ends up looking like this:
Even though it’s totally trivial. On a self-hosted WordPress blog, it’s a one line change.
So my choice here is to either start self-hosting (and I don’t want to — I host enough stuff already), or to figure out a way to work around this weirdness.
WordPress.com offers a few handfuls of widgets. One of them seemed promising — the “Text Widget”. But although you can put HTML in there, there’s no way to update it automatically, or use an <iframe> to embed HTML dynamically.
Then I saw that there’s an RSS widget! What if I were to download the comments feed from WordPress, filter out all pingbacks, and then create a new RSS feed based on that?
Presto!
(The script caches comments, so it should build up to a more meaningful feed after a while…)
The code is on Github, so feel free to use it if you’re also annoyed by the “Recent Comments” box. Two non-optimal things about using this way to list the comments: 1) No images are allowed in the RSS Widget on WordPress.com, so it looks kinda boring, and 2) WordPress.com caches the RSS for a while (an hour?), so it’s not updated immediately.
But it’s good enough for me, and I won’t have to start self-hosting (and stop paying Automattic money).
(My very first Python script! Python seems rather inconsistent. Hysterical raisins, I guess.)