Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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"/>     
    </form>

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

share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.