search variable/tag for WP? (5 posts)

  1. thepete
    Posted 11 years ago #

    Well, I did something stupid--I was moving the search variable/tag around on my index page. I cut it and then got distracted and cut something else (I've the attention span of a cat sometimes...). Now I can't find the search variable/tag anywhere. It's not even listed in the Docs, here at WordPress.org (I did check). Can anyone hook me up, please? Thanks in advance!

  2. Mark (podz)
    Support Maven
    Posted 11 years ago #

    This ?
    <li id="search">
    <label for="s"><?php _e('Search:'); ?></label>
    <form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>">
    <input type="text" name="s" id="s" size="15" />

    <input type="submit" name="submit" value="<?php _e('Search'); ?>" />

  • thepete
    Posted 11 years ago #

    That is it, Podz! Thanks!

  • ColourDreamer
    Posted 9 years ago #

    It's not stupid to delete the search form html (say to use Google's [$$$!]) and then want to use it again. Thanks for this.

    Actually, I mostly use Google's because it gives me a bit of stats on search terms used. Word Press gives no stats on what's searched!

  • ColourDreamer
    Posted 9 years ago #

    Oh! There's a /div there with no beginning div. ;-)

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic


    No tags yet.