Excerpt function with conditional tags:
I hope you have read the post by Shane about the excerpt in wordpress. That method can be used to bypass the excerpt in the Loop. However, excerpt can be used with some conditional tags in your Loop.
For example, you want excerpt to word only for categories and achieves. Then replaces the_content() tag with the_excerpt() when on archive (tested by is_archive()) or category (is_category()) pages.
<?php if(is_category() || is_archive()) {
the_excerpt();
} else {
the_content();
}?>
Popularity: 6%














