This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 17th, 2012  |  syntax: None  |  size: 0.97 KB  |  views: 54  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. $style = 'other-entries';
  10. $c++; ?>
  11.  
  12. <?php if (is_paged()) : ?>
  13.                                 <?php $postclass = ('other entries'); ?>
  14.                         <?php else : ?>
  15.                                 <?php $postclass = ($post == $posts[0]) ? 'first entry' : 'other entries'; ?>
  16.                         <?php endif; ?>
  17.  
  18.         <div class="<?php echo $postclass; ?>">
  19.  
  20.  
  21. <h1><a href="<?php the_permalink() ?>" rel="bookmark" title=""><?php the_title(); ?></a></h1>
  22. <?php the_content(''); ?>
  23. </div>
  24.  
  25.     <?php endwhile; ?>
  26.                 <div class="navigation">
  27.                         <div class="alignleft"><?php next_posts_link(__('Older Entries', 'minimalism')) ?></div>
  28.                         <div class="alignright"><?php previous_posts_link(__('Newer Entries', 'minimalism')) ?></div>
  29.                 </div>
  30.         <?php endif; ?>
clone this paste RAW Paste Data