View Single Post
Old 01-18-2011, 09:58 PM  
xenigo
Confirmed User
 
Industry Role:
Join Date: Jan 2001
Location: Oakland, CA
Posts: 8,067
Quote:
Originally Posted by AAB View Post
Do you want excerpts on your index page? You may need to modify one (or more) files of your theme if you're currently not getting that. It's very easy, though.

I'm gonna assume you want it on your index page and that at present time your index page displays full length posts. You will need to open your theme's Main Index Template file (index.php), search for the_content() and change it to the_excerpt. Voila... instead of having full posts on your front page, you will have excerpts. Of course, if you are using a caching plugin (such as WP Super Cache), you may need to dump the cache in order to see the changes.
Here's what my index.php consists of:

PHP Code:
get_header(); ?>

        <div id="container">
            <div id="content" role="main">

            <?php
            
/* Run the loop to output the posts.
             * If you want to overload this in a child theme then include a file
             * called loop-index.php and that will be used instead.
             */
             
get_template_part'loop''index' );
            
?>
            </div><!-- #content -->
        </div><!-- #container -->

<?php get_sidebar(); ?>
<?php get_footer
(); ?>
xenigo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote