Full Posts or Excepts on WordPress Home page?

Over the years I have set just a few WordPress blogs, but every time I look how i can change the blog so I don’t get the full posts on the home page, and other pages like categories, archives and tag pages.

I am not really sure, but I don’t think its good from an SEO perspective to have the full posts on many pages. (however, those excerpts everyewhere, don’t now if that’s any good too)

So, I did a quick and dirty change. In the content.php file of the default twentytwelve template. On line 33 of content.php it reads:

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

I want excepts everywhere, so I changed it to:

<?php if ( is_search() OR is_home() OR is_category() OR is_tag() ) : // Only display Excerpts for Search home cat tag ?>
 <div class="entry-summary">
 <?php the_excerpt(); ?>
 <b>Read all of this entry:</b> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
 </div><!-- .entry-summary -->

That makes that the only place where the full content of the post, is only shown of the actual page of the post!

 

Leave a Reply

Your email address will not be published. Required fields are marked *