title: Wordpress two loops nested
body: <p>I want to expose an issue concerning the integration of two Loops in Wordpress.
  I have this slider (come from WP Coda Slider plugin), which calls pages:</p>
  
  <pre><code>&lt;?php query_posts('post_type=page&amp;orderby=title&amp;order=asc'); ?&gt;
  &lt;div class="scrollContainer"&gt;
  &lt;?php while (have_posts()) : the_post(); ?&gt;
  &lt;div class="panel" id="&lt;?php echo $post-&gt;post_name ; ?&gt;"&gt;
  &lt;?php the_content(); ?&gt;
  &lt;/div&gt;
  &lt;?php endwhile;?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and it works great.
  In one page content, I run another php Loop to call the posts list, like this:</p>
  
  <pre><code>&lt;?php query_posts ('post_type=post&amp;order=desc'); ?&gt;
  &lt;?php while (have_posts()) : the_post(); ?&gt;
  &lt;li&gt;&lt;a rel="group_news" href="&lt;?php the_permalink() ; ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;?php echo '&amp;nbsp;&amp;nbsp;&amp;nbsp;' ?&gt;&lt;?php comments_number('No Comments','1 Comment','% Comments'); ?&gt;&lt;/li&gt;&lt;?php endwhile;?&gt;
  &lt;?php wp_reset_query(); ?&gt;
  </code></pre>
  
  <p>And the list is regularly called in that page, in that slider panel to be more precise.
  Unfortunately, posts are also called in next panels of sider, as pages must be, replacing them.
  In short:
  panel 1: page content (ok)
  panel 2: page content (ok)
  panel 3: page content - posts list of second loop (ok)
  panel 4: post content (wrong)
  panel 5: post content (wrong)
  ...</p>
  
  <p>in panel 4 and 5, I expect to have page 4 and 5 content, not the posts !</p>
  
  <p>I can't solve this
  thanks a lot</p>