How to add your Netflix queue to Wordpress

I recently added my Netflix queue to my W sidebar, and though a quick tutorial on how to do it would be in order.

First, make sure you have updated to the most recent version of Wordpress (2.1 at the time or writing), it comes bundled with the Magpie RSS parser.

Next all you have to do is paste this php code wherever you would like to display your queue:

//$url should be the url of the Netflix RSS feed you want to display
$url = ‘http://rss.netflix.com/AtHomeRSS?id=P1111853993031910187196164895014424′;

if ( $url ) {
$rss = fetch_rss( $url );
echo “<p>”;
echo “My ” . $rss->channel['title'] . “<p>”;
echo “<ul>”;
foreach ($rss->items as $item) {
$href = $item['link'];
$title = $item['title'];
echo “<li><a href=$href>$title</a></li>”;
}
echo “</ul>”;
}

I placed mine in the sidebar file of my current theme. You can do this from within W by going to Presentation->Theme Editor.

Make sure you set the $url variable to the URL for YOUR Netflix RSS feed. It will work for any of them; your Queue, Checked-out, or Recommendations.

Note: You have to place the php code in one of the php files, it won’t work if you place it in a blog post.

** UPDATE: I have paused my netflix queue: see post. Thus I will temporarily be removing the queue from my sidebar **

This entry was posted in Projects, Technology, theSite. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

4 Comments

  1. Posted February 10, 2007 at 8:49 am | Permalink

    Nice tutorial… One note….

    I think it would probably be possible ti insert the php into a Page or post as long as you run a plugin like Exec-PHP http://bluesome.net/post/2005/08/18/50/

  2. Posted February 11, 2007 at 6:55 pm | Permalink

    Thanks for the info, Ill have to check that out.

  3. brianna
    Posted February 13, 2007 at 12:16 pm | Permalink

    ok I was just looking at your list for netflix and i can’t believe you haven’t seen casablanca, return to me, city of god, and i can’t believe you just wouldn’t watch marry poppins when you were down here. i mean haven’t we watched that movie enough throughout our childhood…but you have some very good choices.

  4. Posted November 16, 2007 at 1:57 am | Permalink

    Nice tutorial… One note….

    I think it would probably be possible ti insert the php into a Page or post as long as you run a plugin like Exec-PHP

4 Trackbacks

  1. By brodrigu » Blog Archive » Netflix RSS on February 9, 2007 at 10:29 am

    [...] To find out how to add your netflix queue to your wordpress blog, check out this [...]

  2. [...] Here’s a technique to display your Netflix queue in your Word Press blog. tech | February 10th, 2007 [...]

  3. [...] Your Netflix Queue to WordPress: Brodrigu offers “How to Add Your Netflix Queue to WordPress”, taking advantage of the Magpie RSS Parser that comes in the latest version of WordPress. This [...]

  4. By Icarus Consulting | News on March 20, 2007 at 7:37 pm

    [...] seemingly simple arrangement has spawned a wealth of user innovations. Subscribers have incorporated RSS feeds of their Netflix queues into their blogs. A developer wrote a PERL module to [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>