Place the code bellow in search.php of your theme. Insert it after “<?php if (have_posts()) : ?>”
$allsearch = &new WP_Query("s=$s&showposts=-1");
$searchTerm= wp_specialchars($s, 1);
$postCount = $allsearch->post_count;
$searchTerm and $postCount will hold the data, echo them however you like.
Visit the best themes marketplace with over 600 premium wordpress themes.













Don’t re-invent the wheel! Use the function the_search_query() to print the search term, and $wp_query->found_posts for the total post count!
Plus you’re also saving another DB call
@Alex – Thanks, i’ll update the post with that solution later
Love this site.
@Alex snippet would be e.g.:
Search results for '' :found_posts; ?> matches found.