SHARE
TWEET

Untitled

a guest Feb 16th, 2012 73 Never
  1. <?php if (have_posts()) : ?>
  2.  
  3. <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  4. if ( !is_paged() ) $posts_per_page = 5;
  5. else $posts_per_page = 6;
  6. query_posts('posts_per_page='. $posts_per_page .'&paged=' . $paged); ?>    
  7. <?php while (have_posts()) : the_post();
  8. $c = 0;
  9. $c++;
  10. if ($c ==1 )  $style = 'first entry';
  11. else  $style = 'other-entries';?>
  12. <div <?php post_class( $style ); ?>>
  13. <h1><a href="<?php the_permalink() ?>" rel="bookmark" title=""><?php the_title(); ?></a></h1>
  14. <?php the_content(''); ?>
  15. </div>
  16.  
  17.     <?php endwhile; ?>
  18.                 <div class="navigation">
  19.                         <div class="alignleft"><?php next_posts_link(__('Older Entries', 'minimalism')) ?></div>
  20.                         <div class="alignright"><?php previous_posts_link(__('Newer Entries', 'minimalism')) ?></div>
  21.                 </div>
  22.         <?php endif; ?>
RAW Paste Data
Top