Languages: English • 日本語 עברית • (Add your language)
This Conditional Tag checks if search result page archive is being displayed. This is a boolean function, meaning it returns either TRUE or FALSE.
<?php is_search(); ?>
This tag does not accept any parameters.
<?php
if ( is_search() ) {
// add external search form (Google, Yahoo, Bing...)
}
?>
Since: 1.5.0
is_search() is located in wp-includes/query.php
.