WordPress.org

Ready to get started?Download WordPress

Forums

Display the_content on search/archive/cat TWENTY TEN (3 posts)

  1. Romeon
    Member
    Posted 3 years ago #

    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?

  2. chinmoy
    Member
    Posted 3 years ago #

    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 -->
  3. Romeon
    Member
    Posted 3 years ago #

    Worked like a charm, thanks for the quick reply.

Topic Closed

This topic has been closed to new replies.

About this Topic