Return to Snippet

Revision: 35883
at November 15, 2010 02:42 by laurentzziu


Initial Code
<h2 class="pagetitle">Search Results for <?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('articles'); wp_reset_query(); ?></h2>

Initial URL

                                

Initial Description
Add this in search.php

Initial Title
Wordpress Search Results Number

Initial Tags
number, search, wordpress

Initial Language
PHP