In spite of your best efforts, static navigation for a website will always be left wanting when a user wants to quickly and easily find content matching a specific term or phrase. That is where search comes in, and with WordPress, it is easy to implement.
Open your theme and decide where you want to place the search form. The best place for a search form is either in the header or at the top of a sidebar in the site. When you figure out where you want to place the search form, insert the following code at the appropriate place:
<form method="get" id="searchform" action="<?php echo site_url('/'); ?>"> <label class="hidden" for="s"><?php _e('Search for:'); ?></label> <div> <input type="text" value="<?php echo attribute_escape(get_search_query()); ?>" name="s" id="s" /> <input type="submit" id="searchsubmit" value="<?php _e('Search'); ?>" /> </div> </form>
After you've...