• I have created a custom theme for a site I am designing, but I can not get the search to work. If I switch theme to one of the default themes, everything works, but using my theme I am taken back to the homepage. Below is my searchform.php

    <div id="searchform">
    <form role="search" method="get" id="searchform" action="<?php bloginfo('home'); ?>/" >
    <div><label class="screen-reader-text" for="searchinput">Search for:</label>
    <input type="text" value="<?php the_search_query(); ?>" name="searchinput" id="searchinput" />
    <input type="submit" class="submit" name="submit" id="searchsubmit" value="Search" />
    </div>
    </form>
    </div>

    Any help would be greatly appreciated.

    James

  • The topic ‘Search not working’ is closed to new replies.