• I’ve seen a lot of posts regarding this problem, but I am unable to see where the setting need to changed with the TwentyTen theme in order for the full posts with pictures to be displayed when a category is selected.
    Here is the achive.php file, (below is the category.php file):

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Amend the category.php template file to include <?php the_content{};?>.

    in loop.php, this is the area (from line 134) that decides to show excerpts for the archives (and categories):

    <?php if ( is_archive() || is_search() ) : // Only display Excerpts for archives & search ?>
    			<div class="entry-summary">
    				<?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    			</div><!-- .entry-summary -->
    	<?php else : ?>
    			<div class="entry-content">
    				<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    				<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    			</div><!-- .entry-content -->
    	<?php endif; ?>

    You can always increase the size of the excerpt with a plugin. I posted a quick article on my blog about it.

    Cheers,
    Rab

    Open Loop.php

    <?php if ( is_archive() || is_search() ) : // Only display Excerpts for archives & search ?>
    			<div class="entry-summary">
    				<?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    			</div><!-- .entry-summary -->
    	<?php else : ?>
    			<div class="entry-content">
    				<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    				<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    			</div><!-- .entry-content -->
    	<?php endif; ?>

    Replace with this:

    <?php if ( is_archive() || is_search() ) : // Only display Excerpts for archives & search ?>
    			<div class="entry-summary">
    				<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    				<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    			</div><!-- .entry-content -->
    			</div><!-- .entry-summary -->
    	<?php else : ?>
    			<div class="entry-content">
    				<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    				<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    			</div><!-- .entry-content -->
    	<?php endif; ?>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Categories won’t display full posts with TwentyTen’ is closed to new replies.