WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have member pages. I set their "membership type" as a certain category. I want to search the members now. I use this simple form that does what I need, except that I need the results to display as excerpts. Ideas?

<form method="get" id="search form" action="/">
<input type="text" value="" name="s" id="s" />
<input type="hidden" value="22" name="cat" id="scat" />
<input type="submit" id="search_submit" name="Search" value="Search"/>


I dropped into the theme and found search.php and saw:

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

I changed to:

<div class="entry">
                <?php the_excerpt(); ?>
            </div><!-- /.entry -->

I think that did the trick! So...I guess I answered my own question! :) || Thanks!

share|improve this question

Whats the loop look like on your search.php page? That's the search results template, and that's where the different output - either the_excerpt or the_content - is determined.

See Template Tags/the_content « WordPress Codex and Template Tags/the excerpt « WordPress Codex.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.