Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jan 14th, 2013  |  syntax: None  |  size: 0.78 KB  |  hits: 59  |  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()) : 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.     <div class="blog-thumb"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('featured-post-thumbnail'); ?></a></div>
  6.                 <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
  7.                 <?php if($counter===1) {the_content();} else {the_excerpt();}?>
  8.         </div>
  9.  
  10. <?php endwhile; ?>
  11.  
  12.         <div class="navigation">
  13.                 <div class="next-posts"><?php next_posts_link(); ?></div>
  14.                 <div class="prev-posts"><?php previous_posts_link(); ?></div>
  15.         </div>
  16.  
  17. <?php else : ?>
  18.  
  19.         <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  20.                 <h1>Not Found</h1>
  21.         </div>
  22.  
  23. <?php endif; ?>