Support » Fixing WordPress » Add Google Reader Blog Roll to a WordPress Page with a script

  • 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>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Add Google Reader Blog Roll to a WordPress Page with a script’ is closed to new replies.