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

Untitled

By: a guest on Jan 14th, 2013  |  syntax: None  |  size: 0.83 KB  |  views: 71  |  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()) : while(have_posts()) : the_post(); $counter++; // add +1 to count for each post ?>
  2.      
  3.  
  4.         <div style="float:left;" <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  5.  
  6.     <?php if ($counter > 1) : ?>
  7.     <div class="blog-thumb"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('featured-post-thumbnail'); ?></a></div>
  8.     <?php endif; ?>
  9.                 <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
  10.                 <?php if($counter===1) {the_content();} else {the_excerpt();}?>
  11.         </div>
  12.  
  13. <?php endwhile; ?>
  14.  
  15.         <div class="navigation">
  16.                 <div class="next-posts"><?php next_posts_link(); ?></div>
  17.                 <div class="prev-posts"><?php previous_posts_link(); ?></div>
  18.         </div>
  19.  
  20. <?php else : ?>
  21.  
  22.         <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  23.                 <h1>Not Found</h1>
  24.         </div>
  25.  
  26. <?php endif; ?>
clone this paste RAW Paste Data