WordPress mod: RSS widget

The WordPress RSS widget has two little flaws, in my opinion. Here are my fixes, in case they help anyone:

  1. For an article the widget will provide a “title” attribute that contains the whole content from the article. Since this site implements a tooltip-like hover box for links with a title element, that can get really ugly. The fix is trivial, and involves truncating post content at 500 characters.
  2. When given a feed from my Google Reader “shared items” list, the title of the blog is mashed against the end of the article title. I’ll get things like “Cat Stuck Up TreeRoanoke Times”, which is also really ugly. The fix is somewhat more complicated, and involves not including the “source” element in the article title.

WordPress 2.6 also finally integrated the ability to log in and administer your blog over HTTPS, so that’s one less patch/plugin I need to track.

Happy hacking!

Leave a Reply

Your email address will not be published. Required fields are marked *