• Resolved deckster0

    (@deckster0)


    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)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple Loops?’ is closed to new replies.