You can display a search form anywhere on a WordPress site by including

get_search_form();

in the template. If your theme contains searchform.php, WordPress will display the contents of the file.

17 more words