Title: Multiple Loops?
Last modified: August 19, 2016

---

# Multiple Loops?

 *  Resolved [deckster0](https://wordpress.org/support/users/deckster0/)
 * (@deckster0)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/multiple-loops-7/)
 * I want to create multiple loops.
    Showing the three newest posts with one style
   and the rest with another. Note that I only display posts from category. Could
   someone help me and modify the code?
 *     ```
       <?php if (have_posts()) : ?>
       <?php query_posts('category_name=front=3'); ?>
       <?php while (have_posts()) : the_post(); ?>
       <div class="container">
       <a>">
       <div class="box">
       <div class="shadowtitle"><?php the_title(); ?></div>
       <font class="shadowtime"><?php the_time('D j, Y'); ?> | Posted by <?php the_author(); ?></font></div></a>
       <div style="clear:both;">
       </div>
       </div>
       <div style="clear:both;"></div>
       <?php endwhile; ?>
       ```
   

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

 *  [doc4](https://wordpress.org/support/users/doc4/)
 * (@doc4)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/multiple-loops-7/#post-1319912)
 * Deckster0
 * Take a look at the information provided in the codex:
    [http://codex.wordpress.org/The_Loop#Multiple_Loops_in_Action](http://codex.wordpress.org/The_Loop#Multiple_Loops_in_Action)
 *  Thread Starter [deckster0](https://wordpress.org/support/users/deckster0/)
 * (@deckster0)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/multiple-loops-7/#post-1319971)
 * Oh yeah, problem solved 😀

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

The topic ‘Multiple Loops?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [deckster0](https://wordpress.org/support/users/deckster0/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/multiple-loops-7/#post-1319971)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
