Post emergency WordPress questions for fast help... ...Or answer questions first & win prize money.

$10
Multiple content loops on same page

Hi Experts,

I am trying to use multiple content loops within the same page template. Essentially what I have is a rotating banner area on the homepage. This area will display a set number of posts within a certain category. It also has 2 layout variations based on whether a post-thumbnail is present or not. This is working fine, but down below this banner area, I also have a content area that uses another standard Loop that just calls in the content. The problem I'm running into is that the 2nd loop is not functioning properly. The 2nd loop is pulling in posts from the category specified by the 1st loop. I just want it to pull in the regular page content.

Sorry if this is confusing. Please let me know if you have any questions.

Thanks a lot for your help.


Here's the code:

<!-- LOOP 1 -->

<div id="home_slider">
<?php
$feathome = // get_option('ss_feathome_cat');
$item_count_home = 4; // get_option('ss_homeitems');
$home_category_id = 32; // get_cat_id($feathome);
$query_string ="posts_per_page=$item_count_home&cat=$home_category_id";

query_posts($query_string);

if (have_posts()) : while (have_posts()) : the_post(); ?>

<?php if ( has_post_thumbnail() ) : ?>
<div class="slider-container">
<div class="home_slider_thumbnail_content">
<?php the_content(); ?>
</div><!-- end home_slider_thumbnail_content -->

<div class="home_slider_thumbnail"><?php the_post_thumbnail('Homefeatimg'); ?>
<div class="home_slider_bottom">&nbsp;</div><!-- end bottom -->
</div><!-- end home_slider_thumbnail -->
</div><!-- end slider-container -->


<?php else : ?>


<div class="slider-container">
<div class="home_slider_thumbnail_content_wide">
<?php the_content(); ?>
</div><!-- end home_slider_thumbnail_content_wide -->
</div><!-- end slider-container -->

<?php endif; ?>
<?php endwhile; endif; ?>

</div><!-- end home_slider -->





<!-- LOOP 2 -->


<div id="content_wrap">
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php the_content(); ?>

5- Squared | 04/08/10 at 8:14pm | RSS Answers | Tags

(2) Possible Answers Submitted...

You must be logged in to view answers or answer this question.