How to add your Netflix queue to Wordpress
February 9th, 2007
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 **





8 comments on “How to add your Netflix queue to Wordpress”
01
[...] To find out how to add your netflix queue to your wordpress blog, check out this [...]
02
[...] Here’s a technique to display your Netflix queue in your Word Press blog. tech | February 10th, 2007 [...]
03
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/
04
Thanks for the info, Ill have to check that out.
05
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.
06
[...] 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 [...]
07
[...] 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 [...]
08
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