WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Excerpts with 2010? (3 posts)

  1. WebTrooper
    Member
    Posted 3 years ago #

    I'm sorry if this has been asked before, but this forum doesn't seem to have much in the way of search options. I'm trying to figure out how to display excerpts on home page and archives, using the default twenty ten theme. Prefer that theme because it's not all customized - just plain and simple, like a fresh canvas to create upon. However, it appears the only option is to display posts in their entirety on the front page and archives pages. I'm somewhat visually impaired so searching the entire wordpress website (which seems to be the only option - and no sorting options either) is really difficult for me. Any advice would be greatly appreciated.

    Thank you

  2. Tara
    Member
    Posted 3 years ago #

    to change CONTENT to EXCERPT, replace "content" with excerpt in the following line, around line#138 in loop.php

    <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?>
    				<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    			</div><!-- .entry-content -->
    	<?php endif; ?>
  3. WebTrooper
    Member
    Posted 3 years ago #

    Thanks you t-p. it never crossed my mind to look in loop.php. I'm still reading through the docs and trying my best to learn my way around.

    Have a wonderful day! =)

Topic Closed

This topic has been closed to new replies.

About this Topic