title: how to show last blog post with php?
body: <p>I have a this code in my WP theme and it works correctly. But when I want to show the last post from another website (for example: www.mag.tabgir.com) it doesn't show the post from my blog. </p>
  
  <p>How can i change this code to show last post from this site www.mag.tabgir.com? </p>
  
  <pre><code>&lt;section class="block-blog box"&gt;
      &lt;header&gt;
      &lt;h2&gt;recent post&lt;/h2&gt;
      &lt;/header&gt;
      &lt;section class="content"&gt;
         &lt;?php
              // The Query
          query_posts( 'posts_per_page=3' );
  
          // The Loop
          while ( have_posts() ) : the_post();?&gt;
  
          &lt;article class="clearfix"&gt;
              &lt;a href="&lt;?php the_permalink() ?&gt;" title="&lt;?php the_title() ?&gt;"&gt;&lt;?php the_post_thumbnail('blog') ?&gt;&lt;/a&gt;
              &lt;h1 class="title"&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" title="&lt;?php the_title() ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h1&gt;
              &lt;span&gt;&lt;?php the_time('d/M/Y') ?&gt;&lt;/span&gt;
          &lt;/article&gt;
          &lt;?php endwhile;
  
          // Reset Query
          wp_reset_query();
          ?&gt;
          &lt;a href="https://mag.tabgir.com/" class="blog"&gt;see more&lt;/a&gt;
      &lt;/section&gt;
  &lt;/section&gt;
  </code></pre>