• I am setting up my website and can’t figure out how to change the code so that the full post is shown in the category and search page.

    I have been reading other forum posts on this and haven’t found the solution, I am using 3.2.1 and the twenty ten theme.

    I narrowed one place this is referenced in the loop.php file

    <?php if (  is_archive() || is_search() ) : // Display excerpts for archives and search. ?>
    			<div class="entry-summary">
    				<?php the_excerpt(); ?>

    I tried making changes to the and or (||), class, the_excerpt.
    i.e. removing is_archive(), changed “summary” & excerpt() to content and a couple of other things.

    What can be done with this code to change it to full posts? or
    Is there another place that the program references to write the excerpt in the category / search / archive?

    Thanks for the help in advance

    [sig moderated]

Viewing 1 replies (of 1 total)
  • a:
    this code might appear more than once in loop.php of twenty ten; to be sure, change it in all locations.

    b:
    change at least this section (that is the one nearest to the end of loop.php):

    <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and 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">&rarr;</span>', 'twentyten' ) ); ?>
    				<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    			</div><!-- .entry-content -->
    	<?php endif; ?>

    to:

    <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 -->
Viewing 1 replies (of 1 total)
  • The topic ‘Show full post in, categories & search’ is closed to new replies.