Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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="/">
<div>
<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"/>
</div>
</form>

UPDATE

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

1 Answer 1

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

 
discard

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.