Title: pause or stop the loop?
Last modified: August 19, 2016

---

# pause or stop the loop?

 *  [dynamitharry](https://wordpress.org/support/users/dynamitharry/)
 * (@dynamitharry)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/pause-or-stop-the-loop/)
 * hello,
 * i need to pause the loop! i try to implement [quicksand](http://razorjack.net/quicksand/index.html)
   to filter search results..
 * but now i’m stepping on some trouble.
    i wish to just write out the ul two times,
   one for “source” and one time for destination, now it’s just flipping out. can
   i pause the loop or stop it, put out a and start after that?
 * any help appriciated!
 * this is a part of my code to put images in the search:
 *     ```
       <ul id="source">
       				<li data-id="id-<?php echo $i; $i++; ?>" data-type="<?php $description = get_post_meta($post->ID, 'color', true); echo $description; ?>">
                   <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php image_attachment('image', 124, 138); ?></a>
              		<?php the_title(); ?>
               </li>
               </ul>
   
               <ul id="destination" style="display: none">
               			<li data-id="id-<?php echo $i; $i++; ?>" data-type="<?php $description = get_post_meta($post->ID, 'color2', true); echo $description; ?>">
                   <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php image_attachment('image2', 124, 138); ?></a>
               <?php the_title(); ?>
               </li>
   
                 			<li data-id="id-<?php echo $i; $i++; ?>" data-type="<?php $description = get_post_meta($post->ID, 'color3', true); echo $description; ?>">
   
                   <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php image_attachment('image3', 124, 138); ?></a>
               <?php the_title(); ?>
               </li>
                  </ul>
       ```
   

The topic ‘pause or stop the loop?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [dynamitharry](https://wordpress.org/support/users/dynamitharry/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/pause-or-stop-the-loop/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
