I wish to expose an problem in regards to the integration of two Loops in Wordpress. I've this slider (originate from Wordpress Coda Slider wordpress plugin), which calls pages:
<?php query_posts('post_type=page&orderby=title&order=asc'); ?> <div class="scrollContainer"> <?php while (have_posts()) : the_post(); ?> <div class="panel" id="<?php echo $post->post_name ; ?>"> <?php the_content(); ?> </div> <?php endwhile;?> </div>
and delay pills work great. In a single page content, I run another php Loop to call the posts list, such as this:
<?php query_posts ('post_type=post&order=desc'); ?> <?php while (have_posts()) : the_post(); ?> <li><a rel="group_news" href="<?php the_permalink() ; ?>"><?php the_title(); ?></a><?php echo ' ' ?><?php comments_number('No Comments','1 Comment','% Comments'); ?></li><?php endwhile;?> <?php wp_reset_query(); ?>
And also the list is regularly contacted that page, for the reason that slider panel to become more precise. Regrettably, posts will also be contacted next sections of sider, as pages should be, changing them. In a nutshell: panel 1: page content (ok) panel 2: page content (ok) panel 3: page content - posts listing of second loop (ok) panel 4: publish content (wrong) panel 5: publish content (wrong) ...
in panel 4 and 5, I have a much page 4 and 5 content, not the posts !
I can not solve this thanks