title: Displaying Thumbnail from RSS Feed
body: <p>I am currently displaying an RSS feed and I am grabbing the title, link and date for each article. I would also like to grab the media:thumbnail for each article. Here is the PHP code I am using to retrieve the RSS feed.</p>
  
  <pre><code>&lt;?php
                  $rss = new DOMDocument();
                  $rss-&gt;load('http://www.avfc.co.uk/rss/ptv/page/CustomArticleIndex/0,,10265~2282152,00.xml');
                  $feed = array();
  
  
  
                  foreach ($rss-&gt;getElementsByTagName('item') as $node) {
                  $item = array ( 
                  'title' =&gt; $node-&gt;getElementsByTagName('title')-&gt;item(0)-&gt;nodeValue,
                  'link' =&gt; $node-&gt;getElementsByTagName('link')-&gt;item(0)-&gt;nodeValue,
                  'date' =&gt; $node-&gt;getElementsByTagName('pubDate')-&gt;item(0)-&gt;nodeValue,
  
                   );
                  array_push($feed, $item);
                   }
                   $limit = 2;
                  for($x=0;$x&lt;$limit;$x++) {
                   $title = str_replace(' &amp; ', ' &amp;amp; ', $feed[$x]['title']);
                  $link = $feed[$x]['link'];
                  $date = date('l F d, Y', strtotime($feed[$x]['date']));
  
  
                  echo '&lt;div id="feed"&gt;&lt;a target="_blank" href="'.$link.'" title="'.$title.' "&gt;'.$title.'&lt;/a&gt;&lt;br /&gt;';
                  echo '&lt;a class="date"&gt;Posted on '.$date.'&lt;/a&gt;&lt;/div&gt;';
  
  
  
                   }
                  ?&gt;
  </code></pre>
  
  <p>The RSS feed I am displaying is: <a href="http://www.avfc.co.uk/rss/ptv/page/CustomArticleIndex/0,,10265~2282152,00.xml" rel="nofollow">http://www.avfc.co.uk/rss/ptv/page/CustomArticleIndex/0,,10265~2282152,00.xml</a> </p>
  
  <p>I'm not that good with PHP so does anybody know how I can go about doing this? Thanks.</p>