Forums

Full articles instead of summaries after search in TwentyTen? (6 posts)

  1. Louisxr3
    Member
    Posted 11 months ago #

    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?

  2. alchymyth
    The Sweeper
    Posted 11 months ago #

    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. ?>
  3. Louisxr3
    Member
    Posted 11 months ago #

    Thanks! It works for the search results!

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

  4. alchymyth
    The Sweeper
    Posted 11 months ago #

    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.

  5. Louisxr3
    Member
    Posted 11 months ago #

    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!

  6. Louisxr3
    Member
    Posted 11 months ago #

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

Reply

You must log in to post.

About this Topic