title: Wordpress shortcode display incorrect number of posts
body: <p>I'm using this code to show recent posts with a shortcode that I found at <em>smashingmagazine</em> site. It's not working the correct way, I mean when I specify the number of posts to show, it just shows one post with every number I specify.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>function recent_posts_function() {
  query_posts(array('orderby' =&gt; 'date', 'order' =&gt; 'DESC' , 'showposts' =&gt; 1));
    if (have_posts()) :
      while (have_posts()) : the_post();
         $return_string = '&lt;a href="'.get_permalink().'"&gt;'.get_the_title().'&lt;/a&gt;';
      endwhile;
    endif;
  wp_reset_query();
  return $return_string;
  }
  
  function register_shortcodes(){
     add_shortcode('recent-posts', 'recent_posts_function');
  }
  
  add_action( 'init', 'register_shortcodes');
  </code></pre>
  
  <p>I've changed the <code>showposts</code> number, but nothing happens. What's wrong? </p>
  
  <p>Any suggestions?</p>