Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php query_posts ('posts_per_page=4'); ?>
- <?php if (have_posts()) : ?>
- <table>
- <?php while (have_posts()) : the_post(); ?>
- <?php if (($wp_query->post_count) % 2) : ?>
- <TR><TD>
- <?php while (have_posts()) : the_post(); ?>
- <?php the_title(); ?>
- <?php the_content('Read the rest of this entry »'); ?>
- <p>Categories: <?php the_category(' '); ?></p>
- <?php the_tags('Tags:', ', ', '<br />'); ?> </TD>
- <?php endwhile; ?>
- <?php else : ?>
- <?php while (have_posts()) : the_post(); ?>
- <td>
- <?php the_title(); ?>
- <?php the_content('Read the rest of this entry »'); ?>
- <p>Categories: <?php the_category(' '); ?></p>
- <?php the_tags('Tags:', ', ', '<br />'); ?> </TD> </TR>
- <?php endwhile; ?>
- <?php endwhile; ?>
- </table>
- <?php posts_nav_link('','','« Previous Entries') ?>
- <?php posts_nav_link('','Next Entries »','') ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement