I have found instructions on how to feed my Google Reader blog roll list to my Wordpress blog. I tried the script and it works fine as a widget in the sidebar.
However, I would like to put this into a page on my blog because I have so many feeds in my Google Reader. I placed the code into a page (not using the visual editor) and it isn't working. My guess is that I need to be able to execute a script in a WordPress page.
Can anyone point me to the way to make this work? I have searched around on the forums, but haven't found a direct answer. The script is below:
<div id='blog_roll_16252'>
<script type='text/javascript'>
function build_bloglist_16252(data) {
var container = document.getElementById('blog_roll_16252');
var list = document.createElement('div');
for (var i=0; i < data.items.length; i++) {
var item = data.items[i];
if (item.alternate){
var link = document.createElement('a');
link.appendChild(document.createTextNode(item.title));
link.href = item.alternate.href;
list.appendChild(link);
list.appendChild(document.createElement('br'));
}
}
container.appendChild(list);
}
</script>
<script src='http://www.google.com/reader/public/javascript-sub/user/09961869578670522186/label/blog-roll?callback=build_bloglist_16252' type='text/javascript'></script>
<div align='right' style='margin-top:15px; font-size:85%;'><a href='http://www.google.com/reader/public/subscriptions/user/09961869534543522186/label/blog-roll'>Save as OPML</a> (<a href='http://en.wikipedia.org/wiki/OPML'>?</a>) </div>
</div>