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.

8 Responses to How to add your Netflix queue to WordPress

  1. Pingback: brodrigu » Blog Archive » Netflix RSS

  2. Pingback: avclub.us / ken wilson » Blog Archive » Netflix queue to your sidebar.

  3. Wes says:

    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/

  4. Brad says:

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

  5. brianna says:

    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.

  6. Pingback: WordPress Wednesday: Easter Eggs, Editor Extras, WordPress Plugins, and more WordPress 2.1 at The Blog Herald

  7. Pingback: Icarus Consulting | News

  8. 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

Leave a Reply

Your email address will not be published. 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>