WordPress.org

Support

Support » How-To and Troubleshooting » search form brings me to dashboard!

search form brings me to dashboard!

  • When I use the search form in my sidebar, it brings me to the dashboard! Anyone knows how to fix this?

    I’m using the default template.

    In the sidebar, I have the following code:
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>

    In searchform.php, I have the following code:
    <form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    <div><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
    <input type="submit" id="searchsubmit" value="Search" />
    </div>
    </form>

  • The topic ‘search form brings me to dashboard!’ is closed to new replies.