Utilizzo di loop multiplli

Tre post in primo piano, con tre colonne sottostanti ognuna delle quali contenente gli ultimi 10 post di una categoria.

 

<div id="featured">
    <?php $featured_query = new WP_Query('category_name=featured&showposts=3');
     while ($featured_query->have_posts()) : $featured_query->the_post();
     $do_not_duplicate[] = $post->ID ?>
        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
            <h2>
                <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
                    <?php the_title(); ?>
                </a>
            </h2>
            <?php the_excerpt(); ?>
        </div>
    <?php endwhile; ?>
</div>
<div>
    <h2>Latest from <span>Apples</span></h2>
    <ul>
    <!-- Now begins the first column loop -->
    <?php query_posts('category_name=apples&showposts=10'); ?>
    <?php while (have_posts()) : the_post();
        if (in_array($post->ID, $do_not_duplicate)) continue;
      update_post_caches($posts); ?>
        <li>
            <h3>
                <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
                    <?php the_title(); ?>
                </a>
            </h3>
            <?php the_excerpt(); ?>
        </li>
    <?php endwhile; ?>
    </ul>
</div><div>
    <h2>Latest from <span>Oranges</span></h2>
    <ul>
    <!-- Now begins the second column loop -->
    <?php rewind_posts(); ?>
 <?php query_posts('category_name=oranges&showposts=10'); ?>
    <?php while (have_posts()) : the_post();
        if (in_array($post->ID, $do_not_duplicate)) continue;
        update_post_caches($posts); ?>
        <li>
            <h3>
                <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
                    <?php the_title(); ?>
                </a>
            </h3>
            <?php the_excerpt(); ?>
        </li>
    <?php endwhile; ?>
    </ul>
</div><div>
    <h2>Latest from <span>Lemons</span></h2>
    <ul>
    <!-- Now begins the third column loop -->
    <?php rewind_posts(); ?>
    <?php query_posts('category_name=lemons&showposts=10'); ?>
    <?php while (have_posts()) : the_post();
        if (in_array($post->ID, $do_not_duplicate)) continue;
        update_post_caches($posts); ?>
        <li>
            <h3>
                <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
                    <?php the_title(); ?>
                </a>
            </h3>
            <?php the_excerpt(); ?>
        </li>
    <?php endwhile; ?>
    </ul>
</div>