Title: Funny Loop Query Problem
Last modified: August 20, 2016

---

# Funny Loop Query Problem

 *  [eggsbeer](https://wordpress.org/support/users/eggsbeer/)
 * (@eggsbeer)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/funny-loop-query-problem/)
 * 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>
       ```
   

The topic ‘Funny Loop Query Problem’ is closed to new replies.

## Tags

 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [query](https://wordpress.org/support/topic-tag/query/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [eggsbeer](https://wordpress.org/support/users/eggsbeer/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/funny-loop-query-problem/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
