I have been digging about Thematic trying to find the function that outputs the text of the heading above the search results.
search results for: my search terms
I would like to change this to
X results for: my search terms (0.33 seconds)
Ideally I want to use a filter in functions.php
The following code correctly returns the results count and search execution time.
<?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = wp_specialchars($s, 1); $count = $allsearch->post_count; _e(''); _e('<span class="search-terms">'); echo $key; _e('</span>'); _e(''); echo $count . ' '; _e('results'); wp_reset_query(); ?>
<?php timer_stop(1); ?> seconds)
Does anyone know the best way of achieving this?
This is a nice little enhancement that I am sure others might be interested in.
Thanks for any help on this.