Support » Fixing WordPress » Full articles instead of summaries after search in TwentyTen?

  • I currently switched from the old design of wordpress to twentyten. I really like the new layout, but one thing is bugging me and I don`t know how to solve.

    In the old format, when you hit a search or clicked on a tag, you got a listing of full articles. Now in twentyten you get summaries only. I post pictures with every update I make so it is important to get search or click results with full articles.

    I have looked in the control panel but I don`t see a way to change it from summary to full. I am not talking about the main posts on the page those are ok. The problem is there when you search or when you click on a tag with the attached posts.

    Anyone?

Viewing 5 replies - 1 through 5 (of 5 total)
  • edit loop.php – find:

    <?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?>

    (occurs twice)

    change to:

    <?php if ( is_archive() ) : // Display excerpts for archives. ?>

    Thread Starter Louis

    (@louisxr3)

    Thanks! It works for the search results!

    HOw about the catagories and tag clicks? They are still summaries, is this possible to change too?

    what about the other kind of archives, such a s yearly archives?
    do you want the full code there as well?

    i.e do you want any excerpts at all in your site?

    if not, edit loop.php and find:

    <?php if ( is_archive() || is_search() ) : // 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">→</span>', 'twentyten' ) ); ?>
    			</div><!-- .entry-content -->
    		<?php endif; ?>

    and remove all the if/else/endif and the excerpt code, so the section looks like:

    <div class="entry-content">
    				<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?>
    			</div><!-- .entry-content -->

    similar with the second (ever so slightly different) occurrance.

    Thread Starter Louis

    (@louisxr3)

    I dont use yearly archives, in my blog its only catagories and tags you can click on the sidebar. I dont see any need for summaries, since its not such a huge database per click.

    I`ll try your suggestion above, thank you!

    Thread Starter Louis

    (@louisxr3)

    This was very helpfull, it all works again now, thank you so much!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Full articles instead of summaries after search in TwentyTen?’ is closed to new replies.