Dear WordPress users, please note that this Netflix plugin works very differently as of June 2013. Netflix seems to have decommissioned personal RSS feeds for streaming customers. This has complicated the way the plugin works, and at this point I have not been able to find any information on what the roadmap is for RSS and streaming only customers. For DVD subscribers, you are unaffected besides the fact that your streaming feed will produce an error.

Basically, until we see where this ends up, I cannot guarantee or support how the plugin operates for streaming only Netflix subscribers. I welcome anyone to take what I’ve done, which was built on what Albert Banks had done, and do something more with it! The plugin is open source and you may use it/modify it/redistribute it as you see fit as long as it remains open source.

Plugin Information Summary
The WordPress Netflix-X2 plugin allows you to display content from the RSS feeds in your Netflix account into your WordPress Blog.  Netflix-X2 is based on the original Netflix plugin for WordPress by Albert Banks.  Enhancements have been made to allow support for the latest RSS feeds that Netflix offers. Most notably, you can use this plugin to show movies from your Netflix queue, to show your movies currently at home, to show any movie reviews you have written, and more!

Download the stable version:
Official WP Page: Check out the official page on the WordPress plugin repository for Netflix-X2.

Example Page: to see some real examples.
I have received a fair amount of email asking for the code I used to create my example movies page, so I’ve made that available via text file download here:

As you will see in the documentation below, the functionality of this plugin is fairly versatile.  It can be as simple as setting your options and dropping the widget into your sidebar, but you can also take it much further. The plugin can be used to display cover images, movie titles, and summary text for the movies in your Netflix queue. It can also display your recommendations as well as your movie reviews. It can essentially display content from any of the available Netflix RSS feeds.  (My personal favorite is displaying my movie reviews that I’ve written via Netflix).

Because the plugin is so functional, the more in-depth uses can be a bit difficult at first.  Take a look at some of these examples, and feel free to contact me with any questions.  Please enjoy using this plugin!.

PLEASE NOTE: WordPress by default does not support execution of PHP code within pages/posts. If you’re planning on using Netflix-X2 content in a page or post like I have done here then you’ll have to use a plugin like RunPHP or ExecPHP. However, this is not necessary if you embed the code within header/sidebar/footer php files.

Installation Instructions

  1. Download and unzip the plugin (directory and 3 files)
  2. Upload the folder (netflix-x2) to your WordPress wp-content/plugins directory on your webserver.
  3. Log into your WordPress administrative panel, click on ‘Plugins’ and activate the Netflix-X2 plugin.
  4. Configure the settings by adding your Netflix ID and also the type of content you wish to display. You can get your Netflix RSS ID by logging into your Netflix account, clicking on RSS link at the bottom of the page, and then simply copy and paste your ID from any of the available RSS feeds listed
  5. Add the Netflix-X2 widget to your sidebar! Or, see the General/Advanced usage options below

General Usage
For simplest usage, configure the options from the Netflix-X2 configuration within the WordPress administration panel, and then just put the Netflix-X2 widget into your widget-ready theme. Or, you can call the netflix function from within any of your wordpress files, such as sidebar.php.


<? netflix() ?>

Advanced Options:
For more advanced usage, there are more variables that can be set in the netflix function.

<? netflix($number_movies, $feed, $display_type, $image_size, $before, $after, $netflix_id); ?>

Options breakdown:

$number_movies – number of feed elements displayed (default is 10)

– Set which Netflix feed to use
home – displays movies you have at home currently (default)
queue – displays movies in your queue in order
instant – displays movies from your watch instantly queue
recommendations – displays the movies Netflix has recommended for you
recent – displays your recent rental activity
reviews – displays the most recent movie reviews you’ve written

$display_type – what to display.
title – shows only the movies title (default)
raw – displays raw text from rss feed
image – display the movie cover image
text – For the reviews feed, displays your review text. For all other feeds, displays the movie summary description

$image_size – if $type is set to ‘image’ this defines the image size
small – small image (64px X 90px) (default)
large – large image (110px X 154px)

$before – html appearing before each rss item (li, td, br tags for example)

$after – html appearing after each rss item

$netflix_id – your netflix id

Advanced Options Usage:

For example, this code would display large images for the next 10 items in your queue in an unordered list:

<? netflix(10, “queue”, “image”, “large”, “<li>”, “</li>”, “P9999999999999999999999999999?); ?>

And this code would display the images and titles of the next 20 items in your watch instantly queue:

<? netflix(20, “instant”, “both”, “large”, “<li>”, “</li>”, “P9999999999999999999999999999?); ?>

Additional Functions:

<? netflix_movies($number_movies, $feed, $netflix_id) ?>

This example code of the netflix_movies function will show the last 8 movie reviews you wrote in a nicely formatted unordered list:

<? $movies = netflix_movies(8, “reviews”);
foreach ($movies as $movie) {
echo ‘<li>’;
echo ‘<strong>’,$movie->get_title(),’</strong>’;
echo ‘<br />’;
echo $movie->get_description();
echo ‘</li>’;
} ?>

One last example of code, this would selects the next 25 movies from your queue, looping through them to display each cover image in a formatted html table.

<? $movies = netflix_movies(25, “queue”);
echo ‘<table><tr>’;
foreach ($movies as $movie) {
echo ‘<td>’;
echo $movie->get_cover_image();
echo ‘</td>’;
echo ‘</tr></table>’; ?>

Movie Functions Breakdown:

Displays the Netflix movie ID

Get the movie title

Get link to movie on the Netflix website

Reviews RSS Feed: This function retrieves the review you’ve written.
All other RSS Feeds: This function retrieves the movie summary.

Displays the movie cover image (linked from Netflix’s site)

Gets the html link address for the cover image.

Version History

Version 1.3.1 – 3/11/2010

  • – No need to include the rss.php any longer since we use SimplePie. Changed the require statments to call wp-includes/feed.php instead.
  • – Added a cache timer to counter the SimplePie 12 hour feed cache. Feeds are cached for 30 minutes now vs the 12 hour default.

Version 1.3 – 2/24/2010

  • – Configured REAL widget functionality instead of the hacky wanna-be widget. Works much nicer with user being able to pick title.
  • – Moved the options page to be loc1ated under “Settings” vs under the plugins page. Seems to be the standard now.
  • – Added a settings link on the plugins page for less clicks to get to configure the plugin.

Version 1.2.2 – 2/23/2010

  • – Switched fetch_rss functions from MagpieRSS to now use SimplePie function fetch_feed. This change done due to Magpie depreciation and non-active product.
  • – Removed ^M characters that had become present through Windows/Linux file editing.

Version 1.2.1 – 2/22/2010

  • – Minor change, updated include statements to call rss.php file from wp-includes instead of rss-functions.php.

Version 1.2 – 6/18/2009

  • – Adding “text only” options for feed display. This can be set in the plugin options screen, and can also be called directly by using the get_textonly() function. * Thanks to David McDonald –

Version 1.1 – 11/12/2008

  • – Widgetized the netflix-x2 plugin. No configurable options yet though.
  • – Added new display option “text” to the netflix function. This returns the user’s written review if they have picked the reviews feed; and returns the movie description for any other feed selection.

Version 1.0 – 11/7/2008

  • – Started with version 3.1 of Albert Banks’ original Netflix plugin
  • – Added support for the Reviews RSS feed
  • – Added support for the Watch Instantly Queue RSS feed

For any questions, concerns, or suggestions, please feel free to email me: