title: get_posts() show always same title for all the posts
body: <p>I'm trying to show post of a specific category in the homepage of a Wordpress website using this piece of code:</p>
  
  <pre><code>    &lt;?php $args = array('category' =&gt; 2);
              $news = get_posts($args);
  
              foreach ($news as $new) : setup_postdata($new); ?&gt;
  
              &lt;img data-slidecaption="&lt;div class='caption'&gt;&lt;h2&gt;&lt;?php  the_title(); ?&gt;&lt;/h2&gt;&lt;p&gt;&lt;?php the_excerpt(); ?&gt;&lt;/p&gt;&lt;a href='&lt;?php the_permalink(); ?&gt;'&gt;Leggi tutto&lt;/a&gt;&lt;/div&gt;" src=""&gt;
      &lt;?php endforeach; 
      wp_reset_postdata();?&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>I have, for example, three posts with titles: Post 1, Post 2, Post 3.</p>
  
  <p>The query works fine, and the content of each post is displayed correctly, but the title is always the one from the latest post. The same happens with the permalink. What am I doing wrong?</p>