3 columns post
-
im using this code to make 2 columns post
and i want to make this 3 columns..can anyone help me?<div class="container"> <?php $col = 1; ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php if ($col == 1) echo "<div class=\"row\">"; ?> <div class="post_col<?php echo $col;?>" id="post-<?php the_ID(); ?>"> <b class="rtop"><b class="r1"></b> <b class="r2"></b> <b class="r3"></b> <b class="r4"></b></b> <div id="storythumb"> <img src="<?php echo p75GetThumbnail($post->ID, 310, 250); ?>" /> </div> <div id="storytitle"> <span class="h5"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></span> </div> <div class="storycontent"> <?php the_excerpt('» » » »'); ?> </div> <div class="h3"> <?php the_category(); ?> </div> <div class="h2"> <?php the_time('Y') ?> </div> <b class="rbottom"><b class="r4"></b> <b class="r3"></b> <b class="r2"></b> <b class="r1"></b></b> </div> <?php if ($col == 1) echo "</div>"; (($col==1) ? $col=2 : $col=1); endwhile; ?> <p class="pre_en" align="center"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></p> <?php else : ?> <h2 align="center">Not Found</h2> <p align="center">Sorry, but you are looking for something that isn't here.</p> <?php endif; ?> </div>
thanks before..
any help would be great
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘3 columns post’ is closed to new replies.