WordPress: Change the Full Post Content to an Excerpt

PHP code:

<?php the_excerpt(); ?>


To replace the post’s full content with the excerpt:

search for:


and change it to:



The multi-post displaying template files to change may include:

  • index.php
  • archives.php
  • archive.php
  • category.php
  • search.php

Note: Do NOT change it in your single.php or page.php, if you have them in your Theme, as that will force only the excerpt and not the full content to show up on these single post views of your blog.


Credits: lorelle

Source: http://lorelle.wordpress.com/2006/07/19/display-post-excerpts-only-in-wordpress/

%d bloggers like this: