WordPress.org

Support

Support » How-To and Troubleshooting » Display the_content on search/archive/cat TWENTY TEN

Display the_content on search/archive/cat TWENTY TEN

  • Hey guys,

    I wanna show the entire posts when clicking on a category link or searching the site or viewing the arcvhives.

    Any ideas how to make that happen?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Edit loop.php file. line no 130-139.

    <?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; ?>

    Replace above code with below codde

    <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 -->

    Worked like a charm, thanks for the quick reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display the_content on search/archive/cat TWENTY TEN’ is closed to new replies.
Skip to toolbar