Title: Loop column positioning issue
Last modified: April 8, 2018

---

# Loop column positioning issue

 *  [labyrinthman](https://wordpress.org/support/users/labyrinthman/)
 * (@labyrinthman)
 * [8 years ago](https://wordpress.org/support/topic/loop-column-positioning-issue/)
 * I’m having trouble with listing posts, the columns look all messed up.
 * Code of the loop:
 *     ```
       <div class="container">
       		  <div class="row">
                           <div class="col-md-8">
       							<?php 
       						  $the_band = new WP_Query(array( 
       						   'posts_per_page' => 6, 
                                  'post_status'=>'publish',
                                  'paged=>'. get_query_var('paged'),
                                  'category_name'=>'reviews'
       						   )); 
       						  while ( $the_band->have_posts() ) : 
       						  $the_band->the_post();
       						 ?>
   
                               <div class="col-sm-4" >
                                   <div class="thumbnail text-center"> 
                                       <a class="active-link circle-img-width" href="<?php the_permalink();?>">
                                           <?php the_post_thumbnail('thumbnail',['class' => 'img-circle' ]);?>
                                       </a>
                                       <br>
   
   
                                       <button onclick="window.location='<?php the_permalink();?>';" href="<?php the_permalink();?>" class="draw"><?php the_title();?></button>
                                   </div>
   
                               </div>
                               <?php endwhile; ?>
       <!-- Add the pagination functions here. -->
       <?php wp_pagenavi();?>
                           </div>
                           <aside id="sidebar">
                          <?php get_sidebar();?>
                           </aside>
                       </div>
       	</div>
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Floop-column-positioning-issue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years ago](https://wordpress.org/support/topic/loop-column-positioning-issue/#post-10159395)
 * I recommend asking at [https://wordpress.org/support/theme/newsmag#new-post](https://wordpress.org/support/theme/newsmag#new-post)
   so the plugin’s / theme’s developers and support community can help you with 
   this.

Viewing 1 replies (of 1 total)

The topic ‘Loop column positioning issue’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/loop-column-positioning-issue/#post-10159395)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
