Title: multiple Query bug
Last modified: August 20, 2016

---

# multiple Query bug

 *  [wujekgreg](https://wordpress.org/support/users/wujekgreg/)
 * (@wujekgreg)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/multiple-query-bug/)
 * Hi i make a featured slider, he has 3 panels and 3 slides, in template i got 
   a 2 queries, like so: [Featured.php](http://pastebin.com/iWc2MbN8)
 * in another template: [category.php](http://pastebin.com/0fprV2sU) queries only
   panels from featured template
 * any solutions to fix it?

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

 *  [Kharis Sulistiyono](https://wordpress.org/support/users/kharisblank/)
 * (@kharisblank)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/multiple-query-bug/#post-2729296)
 * You have two loops in your category.php. The first loop is in <?php get_template_part(‘
   featured’ ); ?> and the second is
 *     ```
       <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
       <!-- rest of the loop-->
       ```
   
 * To fix your problem, try to add <?php rewind_posts(); ?> before <?php if ( have_posts()):
   while ( have_posts() ) : the_post(); ?> in second loop.
 *  Thread Starter [wujekgreg](https://wordpress.org/support/users/wujekgreg/)
 * (@wujekgreg)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/multiple-query-bug/#post-2729301)
 * not working.
 * if i disable <?php get_template_part( ‘featured’ ); ?>
 * the category page, archives etc. working well.
 * it must be something wrong in my featured slider template.

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

The topic ‘multiple Query bug’ is closed to new replies.

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [wujekgreg](https://wordpress.org/support/users/wujekgreg/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/multiple-query-bug/#post-2729301)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
