Return to Snippet

Revision: 62653
at March 5, 2013 08:34 by rickahontas


Initial Code
<?php if (have_posts()) : ?>
<?php $count = 0; ?>
<?php while (have_posts()) : the_post(); ?>
<?php $count++; ?>
  <?php if ($count < 2) : ?>
          <?php the_content() ?>
   <?php else : ?>
          <?php the_excerpt(); ?>
  <?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>

Initial URL
http://www.wprecipes.com/datadial-asked-how-can-i-display-1-full-post-and-3-excerpts

Initial Description
To solve an issue for a blog main page in wordpress to display the latest post in its entirety and the remaining posts only the excerpt.

Initial Title
Display latest post in full, rest in excerpt

Initial Tags
wordpress

Initial Language
PHP