Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 16th, 2012  |  syntax: None  |  size: 0.81 KB  |  views: 56  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. 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. $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; ?>
clone this paste RAW Paste Data