Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php query_posts('posts_per_page=6'); ?>
- <?php while (have_posts()) : the_post(); ?>
- <div id="blog-entry" <?php
- $postcount++;
- if( ($postcount % 2) == 0 ) :
- echo " class=\"even\"";
- elseif ( ($postcount % 2) != 0 ):
- echo " class=\"odd\"";
- ?>>
- <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
- ~ posts go here ~
- </div>
- </div>
- <?php endif; ?>
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement