diff --git a/search.php b/search.php index 76de128..8540487 100644 --- a/search.php +++ b/search.php @@ -5,7 +5,21 @@ ?>
-

found_posts ) ); echo ''. $search_query . ''; ?>

+

found_posts; + $title = ''; + + if ( $found_posts === 0 ){ + $title = "Nothing found for $search_query"; + } elseif ( $found_posts === 1 ) { + $title = "One result found for $search_query"; + } else { + $title = "number_format( $found_posts )results found for $search_query"; + } + + echo $title; + ?>