• My theme currently shows the newest article, which I can style specifically and then the remaining articles for however many are set will show, styled according to one other governing style.

    How do I add a third or fourth and is there a way to limit the number per posts that are styled to whichever assigned style?

    Here is my code:

    <?php if (have_posts()) : ?><?php $count = 0; ?><?php while (have_posts()) : the_post(); ?><?php $count++; ?><?php if ($count == 1) : ?>
    
    <div class='first'>
    
    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <?php wp_link_pages( array( 'before' => '<p class="page-link">' . __( 'Pages:' ), 'after' => '</p>' ) ); ?>
    </div><!--post-->
    
    <div class='thumbnail'>
    
    </div><!-- thumbnail -->
    
    </div><!-- first -->
    
    <?php else : ?>
    
    <div class='seconds'>
    
    <div class='thumbnail'>
    
    </div><!-- thumbnail -->
    
    </div><!-- seconds -->
    
    <?php endif; ?><?php endwhile; ?>
    
    <?php if(function_exists('wp_paginate')) {wp_paginate();} ?>
    
    <?php else : ?>
    <div id="not-found"><b>Not Found</b><p>Sorry, but you are looking for something that is not here.</p></div>
    <?php endif; ?>

The topic ‘Various Styles Per Recent Posts?’ is closed to new replies.