Advertisement
alchymyth

multi columns

Sep 11th, 2011
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.11 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.                 <?php if (have_posts()) : ?>
  4.                 <?php while (have_posts()) : the_post(); ?>
  5.  
  6.                 <div <?php $first = ($wp_query->current_post%4==0)?'first':''; post_class(array('column',$first)) ?> id="post-<?php the_ID(); ?>">
  7.  
  8.                     <div class="meta">
  9.                         Posted by <a href="<?php the_author_url(); ?>"><?php the_author(); ?></a> on <?php the_time('jS F Y') ?><?php edit_post_link('Edit this entry', ' // ', ''); ?>
  10.                     </div>
  11.                     <div class="comment_count"><?php comments_popup_link('0', '1', '%', '', 'n/a'); ?></div>
  12.                     <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
  13.                     <div class="body">
  14.                         <?php the_content('Continue Reading'); ?>
  15.                     </div>
  16.                 </div>
  17.                 <?php endwhile; ?>
  18.  
  19.                 <?php if(function_exists('wp_pagenavi')) : wp_pagenavi();  else : ?>
  20.                 <div class="paging">
  21.                     <div class="prev"><?php next_posts_link('Previous Posts') ?></div>
  22.                     <div class="next"> <?php previous_posts_link('Next Posts') ?></div>
  23.                 </div>
  24.                 <?php endif; ?>
  25.  
  26.                 <?php endif; ?>
  27.  
  28. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement