hi i got this code from a post, i want to split loop into 4 column
this is a archive page
i want to limit 1 post in first column 1 post in second column 4 posts in third column 5 post in fourth column
see i want to make like this http://demos.gabfirethemes.com/wp-newspaper/category/finance/ here are 3 column in archive page
please guide me - -
here are the code
<div class="First-column">
<?php while(have_posts()) : ?>
<?php
$postcount++;
if( ($postcount % 2) == 0 ) : // skip 'even' posts
$wp_query->next_post();
else :
?>
<?php the_post(); ?>
<a href="<?php the_permalink(); ?>">
<h4><?php the_title(); ?></h4></a>
<?php endif; ?>
<?php endwhile; ?>
</div>
<?php $postcount = 0; rewind_posts(); ?>
<div class="Second-column">
<?php while(have_posts()) : ?>
<?php
$postcount++;
if( ($postcount % 2) != 0 ) : // skip 'odd' posts
$wp_query->next_post();
else :
?>
<?php the_post(); ?>
<a href="<?php the_permalink(); ?>">
<h4><?php the_title(); ?></h4></a>
<?php endif; ?>
<?php endwhile; ?>
</div>
<?php $postcount = 0; rewind_posts(); ?>
<div class="third-column">
<?php while(have_posts()) : ?>
<?php
$postcount++;
if( ($postcount % 2) != 0 ) : // skip 'odd' posts
$wp_query->next_post();
else :
?>
<?php the_post(); ?>
<a href="<?php the_permalink(); ?>">
<h4><?php the_title(); ?></h4></a>
<?php endif; ?>
<?php endwhile; ?>
</div>
<?php $postcount = 0; rewind_posts(); ?>
<div class="fourth-column">
<?php while(have_posts()) : ?>
<?php
$postcount++;
if( ($postcount % 2) != 0 ) : // skip 'odd' posts
$wp_query->next_post();
else :
?>
<?php the_post(); ?>
<a href="<?php the_permalink(); ?>">
<h4><?php the_title(); ?></h4></a>
<?php endif; ?>
<?php endwhile; ?>
</div>
