Hat Tip to the Ninja
Got some good help in SEO and advanced Google Analytics Techniques from Google Analytics Ninja. Not sure if he says so on his blog, but he is available for consultation. Knowledgeable and to the point.
Got some good help in SEO and advanced Google Analytics Techniques from Google Analytics Ninja. Not sure if he says so on his blog, but he is available for consultation. Knowledgeable and to the point.
Google Reader has some great tagging and sharing features. You can easily get an Atom feed of those stories that you have tagged with a particular tag - this is a great way to keep a public ‘current reading’ list. It wasn’t as easy as I had thought it would be to get this feed up on my Wordpress blog, but I found a way. Hopefully the below will be helpful to anyone trying to do the same.
The Problem:
Wordpress uses the Magpie RSS parser to parse feeds. This is true for the built in RSS widget and also the advanced KBRSS widget. Magpie has some limitations that are highlighted by Google’s feeds. In particular Magpie has a nasty habit of taking multiple <link> tags and squishing them into one, and doing the same with multiple <title> tags. Very bad behavior for a parser. Without any additional treatment, Wordpress digests Google Reader links like the picture at right.
The Solution
I’ll cut out some of the wrong turns along the way. This post, from EconTech, solves a parallel problem and gave me the key to fixing this one. We need to scrub the feed before we send it over to Wordpress. He used Feedburner to clean it up and translate it to RSS, than let Wordpress and Magpie digests the RSS that Feedburner spits out.
The Step-by-Step
Bonus Points
<li><span class=’reading-date’>^pubdate[opts:date=F jS Y]$</span><br/>
<a class=’reading-link’ href=’^link$’ title=’^title$’>^title$</a><br/>
<span class=’reading-annot’>^gr=>annotation_content$</span></li>
Missing Pieces
What’s left out of this solution is those second and third links and titles that were in the original feed. In particularly, the title of the blog that the story originally came from doesn’t get carried through. If you want to take up the charge, that’s something that should be picked up in a more robust solution.