Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* WP_Query - Show in your result search page, How many, products were found.
$mySearch =& new WP_Query("s=$s & showposts=-1"); $num = $mySearch->post_count; ?>
<h1 class="page-title search-products-alert">
Foram encontrados <strong><?php echo $num;?></strong> resultados para a busca: <strong><?php echo get_search_query(); ?></strong>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment