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

Untitled

By: a guest on Jul 30th, 2012  |  syntax: None  |  size: 0.40 KB  |  views: 55  |  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.  
  2.  
  3.     <?php if (have_posts()) : ?>
  4.     <?php if (($wp_query->post_count) > 1) : ?>
  5.     <?php while (have_posts()) : the_post(); ?>
  6.     <?php the_excerpt() ?>
  7.     <?php endwhile; ?>
  8.  
  9.     <?php else : ?>
  10.  
  11.     <?php while (have_posts()) : the_post(); ?>
  12.     <?php the_excerpt() ?>
  13.     <?php endwhile; ?>
  14.     <?php endif; ?>
  15.  
  16.     <?php else : ?>
  17.     <p>Nothing to see here.</p>
  18.  
  19.     <?php endif; ?>
clone this paste RAW Paste Data