posts on 2 columns ? how about more columns?
-
hi there
i have a site with my posts arranged in this order, on 2 columns , like in image below https://img209.imageshack.us/img209/2795/35524646vy9.jpg
using this code :<?php if (have_posts()) : ?> <?php $count=0; while (have_posts()) : the_post(); if(!($firstpost == $post->ID)) : ?> <?php if($count % 2 == 0) echo '<div class="left">'; else echo '<div class="right">'; ?> <div style=""> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"> <?php the_title(); ?> </a></h2> <small><abbr>Posts » <b><?php the_category(', ') ?></b></abbr> - <?php if(function_exists('the_views')) { the_views(); } ?> </small> </div> </div> <?php if($count % 2 != 0) echo '<div class="clear"></div>';?> <?php $count++; endif; ?> <?php endwhile; ?> <div style="clear:both"></div> <?php else : ?> <div class="entry"> <h1>404 Not Found</h1> <?php endif; ?>
so … how can i make it 3 post columns… or 4? or more ?
please, i need some help.
thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘posts on 2 columns ? how about more columns?’ is closed to new replies.