how do i make this theme display summary post (original) (raw)

Viewing 4 replies - 1 through 4 (of 4 total)

  <?php if ( is_search() ) : // Only display Excerpts for Search ?>  
  <div class="entry-content">  
    <?php the_excerpt(); ?>  
  </div>  

Change the first line so that it looks like this instead:

  <?php if ( is_search() || is_home() ) : // Only display Excerpts for Search and Home ?>  
  <div class="entry-content">  
    <?php the_excerpt(); ?>  
  </div>  

That is, you add the is_home() function so that excerpts are also output for the home page and not just the search results.
What you should not do is edit the theme files directly. Otherwise, your changes will be lost the next time you update the theme (and you should make sure you are always running the latest version, in case there are bug fixes, security patches, or changes made because of corresponding changes to the WordPress core). Or, you can edit the theme files directly but you’ll need to make sure you make this modification every time you update the theme.

Viewing 4 replies - 1 through 4 (of 4 total)