WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi I have I started to create my first wordpress template yesterday and today I have gotten to the point where I have to create the search page result.From what I found online that should be search.php file.But for some reason it seems Wordpress is not pointing to that page when I try to search.I also created the searchform.php.Here is my code for it:

    <form id="searchform" method="get" action="<?php bloginfo('url'); ?>">
        <input type="text" value="type your search"/>     

What am I doing wrong?Do I have to activate the search page in functions.php?

share|improve this question
up vote 2 down vote accepted

That input needs a name attribute of s:

<input type="text" name="s" value="type your search" />  
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.