WordPress.org

Ready to get started?Download WordPress

Forums

Show whole article in search results? (3 posts)

  1. revbob
    Member
    Posted 9 years ago #

    I'd like the search results page to show the whole article, not just an excerpt. What's the best way to do that?

  2. Kafkaesqui

    Posted 9 years ago #

    Go into the /wp-contents/themes/default/search.php file and where it shows:

    <div class="entry">
    <?php the_excerpt() ?>
    </div>

    Change it to:

    <div class="entry">
    <?php the_content(); ?>
    </div>

  3. revbob
    Member
    Posted 9 years ago #

    Brilliant. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.