WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] My search works on home page but not sub pages

[Resolved] My search works on home page but not sub pages

Viewing 4 replies - 1 through 4 (of 4 total)
  • kensavage
    Member

    @kensavage

    anyone have any ideas?

    kensavage
    Member

    @kensavage

    Is this correct?

    <?php include(TEMPLATEPATH . '/searchform.php'); ?>

    That one is correct.
    Some servers, however, don’t work well with this:
    action="<?php echo $_SERVER['PHP_SELF']; ?>"

    Try a newer version of the searchform file, e.g. from the latest default theme.

    kensavage
    Member

    @kensavage

    that did it Moshu.

    I changes the search.php file to:

    <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
    <div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
    <input type="submit" id="searchsubmit" value="Search" />
    </div>
    </form>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] My search works on home page but not sub pages’ is closed to new replies.