implement FS#71

This commit is contained in:
John Bintz 2009-06-30 19:53:16 -04:00
parent 54d1f78f33
commit ab7f12911c
2 changed files with 13 additions and 3 deletions

View File

@ -4,7 +4,12 @@
<div class="post-page-head"></div>
<div class="post-page">
<h2 class="pagetitle">Transcript Search for &lsquo;<?php the_search_query() ?>&rsquo;</h2>
<?php
$tmp_search = new WP_Query('s=' . wp_specialchars($_GET['s']) . '&show_posts=-1&posts_per_page=-1');
$count = $tmp_search->post_count;
?>
<h2 class="pagetitle">Transcript search for &lsquo;<?php the_search_query() ?>&rsquo;</h2>
Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.
</div>
<div class="post-page-foot"></div>

View File

@ -4,7 +4,12 @@
<div class="post-page-head"></div>
<div class="post-page">
<h2 class="pagetitle">Search Results for &lsquo;<?php the_search_query() ?>&rsquo;</h2>
<?php
$tmp_search = new WP_Query('s=' . wp_specialchars($_GET['s']) . '&show_posts=-1&posts_per_page=-1');
$count = $tmp_search->post_count;
?>
<h2 class="pagetitle">Search for &lsquo;<?php the_search_query() ?>&rsquo;</h2>
Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.
</div>
<div class="post-page-foot"></div>