Forums

Funny Loop Query Problem (1 post)

  1. eggsbeer
    Member
    Posted 5 months ago #

    I'm getting some really funny results with the below code. The first post in my loop is repeating. Can anyone tell me why? If you need more information please just let me know. I'm fairly new to this. Thanks.

    <div class="posts" id="chowder">
    			<div class="slider" id="slider1">
    			<?php
    				$loop = new WP_Query(array('post_type' => 'printcontent', 'posts_per_page' => 50));
    			?>
    			<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
    				<?php the_content();?>
    				<h1 class="caption1"><?php echo get('print_caption'); ?></h1>
    				<div class="thumbnail1"><?php echo get_image('print_thumbnail'); ?></div>
    			<?php endwhile; ?>
    			</div>
    			<div class="current-caption1"></div>
    		</div>

Reply

You must log in to post.

About this Topic

Tags