title: get_posts doesn't work but query_posts does (Wordpress)
body: <p>I'm using the following code to get posts with different types and categories assigned to them. The problem is that the main post of the page disappeared (the one you write in the Page section of the administrator menu).</p>
  
  <p>I was reading the Wordpress documentation and they said that I should use get_post so that it wouldn't interfere with the main post of the page.</p>
  
  <p>But everytime I change the all the <code>query_posts</code> to <code>get_posts</code> the posts don't appear:</p>
  
  <pre><code>&lt;?php get_posts('category_name=Events&amp;showposts=5'); ?&gt;
  </code></pre>
  
  <p><strong>page-events.php:</strong></p>
  
  <pre><code>&lt;?php
  /**
   * Template Name: Events Template
   * @package WordPress
   * @subpackage Twenty_Ten
   * @since Twenty Ten 1.0
   */
  
  get_header(); ?&gt;
  
          &lt;div id="container"&gt;
              &lt;div id="content" role="main"&gt;
  
  &lt;?php // find all content that has the category of Events and then to loop through them. ?&gt;
  &lt;?php query_posts('category_name=Events&amp;showposts=5'); ?&gt;
  &lt;?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?&gt;
  
                  &lt;div id="post-&lt;?php the_ID(); ?&gt;" &lt;?php post_class(); ?&gt;&gt;
                      &lt;?php if ( is_front_page() ) { ?&gt;
                          &lt;h2 class="entry-title"&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;
                      &lt;?php } else { ?&gt;
                          &lt;h1 class="entry-title"&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;
                      &lt;?php } ?&gt;
  
                      &lt;div class="entry-content"&gt;
                          &lt;?php the_content(); ?&gt;
                          &lt;?php wp_link_pages( array( 'before' =&gt; '&lt;div class="page-link"&gt;' . __( 'Pages:', 'twentyten' ), 'after' =&gt; '&lt;/div&gt;' ) ); ?&gt;
                          &lt;?php edit_post_link( __( 'Edit', 'twentyten' ), '&lt;span class="edit-link"&gt;', '&lt;/span&gt;' ); ?&gt;
                      &lt;/div&gt;&lt;!-- .entry-content --&gt;
                  &lt;/div&gt;&lt;!-- #post-## --&gt;
  
                  &lt;?php comments_template( '', true ); ?&gt;
  
  &lt;?php endwhile; ?&gt;
  
              &lt;/div&gt;&lt;!-- #content --&gt;
          &lt;/div&gt;&lt;!-- #container --&gt;
  
          &lt;div id="container"&gt;
              &lt;div id="content" role="main"&gt;
  
  &lt;?php // find all content that has the type of video and then to loop through them. ?&gt;
  &lt;?php query_posts(array('post_type'=&gt;'video')); ?&gt;
  
  &lt;?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?&gt;
  
                  &lt;div id="post-&lt;?php the_ID(); ?&gt;" &lt;?php post_class(); ?&gt;&gt;
                      &lt;?php if ( is_front_page() ) { ?&gt;
                          &lt;h2 class="entry-title"&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;
                      &lt;?php } else { ?&gt;
                          &lt;h1 class="entry-title"&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;
                      &lt;?php } ?&gt;
  
                      &lt;div class="entry-content"&gt;
                          &lt;?php the_content(); ?&gt;
                          &lt;?php wp_link_pages( array( 'before' =&gt; '&lt;div class="page-link"&gt;' . __( 'Pages:', 'twentyten' ), 'after' =&gt; '&lt;/div&gt;' ) ); ?&gt;
                          &lt;?php edit_post_link( __( 'Edit', 'twentyten' ), '&lt;span class="edit-link"&gt;', '&lt;/span&gt;' ); ?&gt;
                      &lt;/div&gt;&lt;!-- .entry-content --&gt;
                  &lt;/div&gt;&lt;!-- #post-## --&gt;
  
                  &lt;?php comments_template( '', true ); ?&gt;
  
  &lt;?php endwhile; ?&gt;
  
              &lt;/div&gt;&lt;!-- #content --&gt;
          &lt;/div&gt;&lt;!-- #container --&gt;
  
  
  &lt;?php get_sidebar(); ?&gt;
  &lt;?php get_footer(); ?&gt;
  </code></pre>