I'm using the following code to show the number of search results returned:
<h3>Search Result for <?php $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(); ?></h3>
This works fine with the standard WordPress search, however seems to be incorrect when used with Relevanssi. Has anyone else experienced this? Can't seem to figure out solution.