您实际上想要的模板是“content.php”
您需要更改此行:
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php the_content( __( \'Continue reading <span class="meta-nav">→</span>\', \'twentyeleven\' ) ); ?>
<?php wp_link_pages( array( \'before\' => \'<div class="page-link"><span>\' . __( \'Pages:\', \'twentyeleven\' ) . \'</span>\', \'after\' => \'</div>\' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
对此:
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php the_excerpt(); ?>
<?php wp_link_pages( array( \'before\' => \'<div class="page-link"><span>\' . __( \'Pages:\', \'twentyeleven\' ) . \'</span>\', \'after\' => \'</div>\' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
请注意
the_content()
到
the_excerpt()