• Resolved screenwords15

    (@screenwords15)


    hey everyone…

    I have an infinite loop and I can’t find why… I’m sure it’s staring me in the face but here we go….

    <?php if (have_posts()) : ?>
    
    		<div id="categorytitle">
    		<?php the_title(); ?>
    		</div>
    
    		<?php get_sidebar(); ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div id="contents" class="twocolumn">
    
    				<?php the_content(); ?>
    <?php include (TEMPLATEPATH . "/includes/flipbook.php"); ?>
    			</div>
    
    		<?php endwhile; ?>
    
    	<?php endif; ?>

    the include flipbook.php file is as follows…

    <h2>Flipbook</h2>
    
    <p>
    	<img id="largeImg" src="images/img1-lg.jpg" alt="Large image" />
    	<div id="largeText">
    		<h2></h2>
    		<p></p>
    		<a></a>
    
    	</div>
    
    </p>
    	<!-- element with overflow applied -->
    <div id="btnleft"></div><div id="panel">
        <!-- the element that will be scrolled during the effect -->
    
    <p class="thumbs">
    
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php $values = get_post_custom_values("Image"); echo $values[0]; ?>" title="<?php the_title(); ?>" caption="<?php the_excerpt(); ?>" alt="<?php the_permalink(); ?>"/></a>
    
    <?php endwhile; ?>
    <?php endif; ?>	
    
    </p>
    
    </div>
    <div id="btnright"></div>
    <div class="clear"></div>
Viewing 3 replies - 1 through 3 (of 3 total)
  • vtxyzzy

    (@vtxyzzy)

    Not sure what you are trying to do, but your flipbook loop has no query of its own, and it is stepping on the query from the first loop.

    This article in the Codex might help.

    Thread Starter screenwords15

    (@screenwords15)

    thank you so much, vtxyzzy. I’ve fixed the loop, and I have my ‘flipbook’ working. However, I’m now running into the problem that I can’t grab the image from the post I’m making…

    *** EDIT – Never mind I fixed it ***

    again, thank you so much vyxyzzy, I was up late trying to fix that and that just made my day 🙂

    vtxyzzy

    (@vtxyzzy)

    Glad you got it fixed. Now, please use the dropdown at top right to mark this topic ‘Resolved’.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘nested loop leading to an infinite loop’ is closed to new replies.