Creating a custom search form in WordPress

Any form can submit a query to WordPress. The things to keep in mind are:

  • Submitting the request to your blog URL ( bloginfo(‘url’) )
  • The name of the variable that will hold the value of the search term should s unless your blog is setup differently
  • You can write the code of your search form in a separate PHP file and include it in many pages using include (TEMPLATEPATH . "/my_search_form.php");

Read more:

Leave a Reply