How can i display wath i am searching in a theme

Add the following code to your template’s search.php – somewhere before the loop:

<?php
global $wp_query;
echo 'Your results retrive ('.$wp_query->found_posts.' posts) with the subject '.get_search_query().'.';
?>

If search.php does not exists in your template’s directory, either copy archive.php (if it does not exists too, copy index.php – see template hierarchy) and rename it to search.php or insert following code, again before the loop, right into archive.php or index.php respectively:

<?php
if ( is_search() ){
    global $wp_query;
    echo 'Your results retrive ('.$wp_query->found_posts.' posts) with the subject '.get_search_query().'.';
}
?>

tech