Support » Fixing WordPress » Full articles instead of summaries after search in TwentyTen?
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?
-
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. ?>
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.
I don
t use yearly archives, in my blog it
s only catagories and tags you can click on the sidebar. I dont see any need for summaries, since it
s not such a huge database per click.I`ll try your suggestion above, thank you!
This was very helpfull, it all works again now, thank you so much!
- The topic ‘Full articles instead of summaries after search in TwentyTen?’ is closed to new replies.