WordPress 2.6 Upgrade – RSS Feed Broken, Fixed, Still Slightly Broken
I upgraded the blog to WordPress 2.6 this weekend and everything seemed to go fine. Until this morning I got an email from a reader letting me know that the rss feed was broken. (thanks Rutger!) Really broken. As in PHP was dying in the middle of generating it. And Feed Burner was flipping out.
After a few false starts I tracked it down to a plugin that just doesn’t seem like the new WP version. It’s alright, I don’t use that plugin for much anyway.
The feed is now working again. However, the items in the feed do not currently have the date appended to the end of the title. e.g.: (Mar, 1922). This is because I accomplished that in my template by just adding the code to print the date right after the title in the template. Of course, taking this approach means I also had to add it to all of the pages that generate feeds (rss, rdf, atom, rss2). This means I also have to update those pages every time I upgrade wordpress. This time I forgot. I’m going to try to find a better way to hook the tile and append the date before the page gets rendered. So, hopefully, the dates on rss feeds should be back in the next day or so.
If any of our readers know a good way to modify the title of a post right before it’s rendered and wants to spare me a few hours of wading through the codex, I’d appreciate it. I don’t want to append the date to the post title then save it to the database. The date is contained in a custom field and I’d like to keep the two separate.