Droolix - Dare to Continue

Excerpt in WordPress

To change your WordPress blog to only show the excerpt on the main page.  In the file index.php
Find the section
<div class=”storycontent”>
<?php the_content(__(‘(more…)’)); ?>
</div>

and replace it with:
<div class=”storycontent”>
<?php
if (is_home()) {
the_excerpt(__(‘(more…)’));
} else {
the_content(__(‘(more…)’));
}
?>
</div>

  1. Drew,
    Thank you for taking a look at the WordPress theme Gravel! I will implement this code in Gravel 1.4!

    Comment by Melle — May 24, 2009 @ 4:27 am
  2. Hi, interest post. I’ll write you later about few questions!

    Comment by JaneRadriges — June 14, 2009 @ 10:14 am
  3. Hi, very nice post. I have been wonder’n bout this issue,so thanks for posting

    Comment by KattyBlackyard — June 15, 2009 @ 1:54 pm
  4. How soon will you update your blog? I’m interested in reading some more information on this issue.

    Comment by GarykPatton — June 16, 2009 @ 10:20 pm

Leave a comment

RSS feed for comments on this post. TrackBack URL