You need to change the loop template (loop.php).
Around line 132, you have this:
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
You probably need to change it to:
<?php if ( is_archive() ) : // Only display excerpts for archives and search. ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
That way, the search results will show the_content() instead of the_excerpt(). The excerpt stips tags, and shortens the text. The content will show everything.
Hope this helps.
Thread Starter
wspatt
(@wspatt)
Thanks for responding. I changed it exactly the way you said– deleting “|| is_search()”– but nothing happened. Then I read your explanation and changed “the_excerpt” to “the_content” and that worked! Thank you very much for pointing me in the right direction!
deleting “|| is_search()”– but nothing happened.
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
occurs more than once in loop.php; (line 109 and line 137)
the occurrence nearest to the end of the file is the one for ordinary posts.