title: Pulling posts from another WordPress site
body: <p>I am trying to get the 2 latest posts from my personal website, using the code below from <a href="http://codex.wordpress.org/Function_Reference/fetch_feed#Usage" rel="nofollow">http://codex.wordpress.org/Function_Reference/fetch_feed#Usage</a></p>
  
  <pre><code>&lt;h2&gt;&lt;?php _e( 'Recent news from Some-Other Blog:', 'my-text-domain' ); ?&gt;&lt;/h2&gt;
  
  &lt;?php // Get RSS Feed(s)
  include_once( ABSPATH . WPINC . '/feed.php' );
  
  // Get a SimplePie feed object from the specified feed source.
  $rss = fetch_feed( 'THISISWHEREMYURLGOES/' );
  
  $maxitems = 0;
  
  if ( ! is_wp_error( $rss ) ) : // Checks that the object is created correctly
  
      // Figure out how many total items there are, but limit it to 5. 
      $maxitems = $rss-&gt;get_item_quantity( 2 ); 
  
      // Build an array of all the items, starting with element 0 (first element).
      $rss_items = $rss-&gt;get_items( 0, $maxitems );
  
  endif;
  ?&gt;
  
  &lt;ul&gt;
  &lt;?php if ( $maxitems == 0 ) : ?&gt;
      &lt;li&gt;&lt;?php _e( 'No items', 'my-text-domain' ); ?&gt;&lt;/li&gt;
  &lt;?php else : ?&gt;
      &lt;?php // Loop through each feed item and display each item as a hyperlink. ?&gt;
      &lt;?php foreach ( $rss_items as $item ) : ?&gt;
          &lt;?php echo esc_html( $item-&gt;get_title() );  ?&gt;
          &lt;li&gt;
              &lt;a href="&lt;?php echo esc_url( $item-&gt;get_permalink() ); ?&gt;"
                  title="&lt;?php printf( __( 'Posted %s', 'my-text-domain' ), $item-&gt;get_date('j F Y | g:i a') ); ?&gt;"&gt;
                  &lt;?php echo esc_html( $item-&gt;get_title() ); ?&gt;                    
                  &lt;?php printf( __( 'Posted %s', 'my-text-domain' ), $item-&gt;get_date('j F Y | g:i a') ); ?&gt;
  
              &lt;/a&gt;
          &lt;/li&gt;
      &lt;?php endforeach; ?&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p></p>
  
  <p>With this code, I can get the Posts URL, the title and the date posted, which is great!</p>
  
  <p>Now, trying to get the image is another issue.
  I am trying to use :</p>
  
  <pre><code>&lt;?php echo esc_html( $item-&gt;the_post_thumbnail() ); ?&gt; 
  </code></pre>
  
  <p>But I get the error :
  Fatal error: Call to undefined method SimplePie_Item::the_post_thumbnail()</p>
  
  <p>So, using SimplePie, is there a way to get the posts image?</p>
  
  <hr>
  
  <p>MAJOR EDIT:</p>
  
  <p>This way of getting the RSS feed isn't great, it is causing alot of issues throughout the site, so if anyone could show me/direct me to something where I can get the 4 latest posts from another WordPress site, that'd be awesome!</p>