1
2
3
4
5
6
7
<form method="get" id="searchform" class="searchform" action="<?php bloginfo('home'); ?>/">
    <div class="input-append">
        <input type="hidden" name="post_type" value="event" /> <?php // This does the trick, search only on post type named "event" ?>
        <input type="text" class="span2 field" name="s" id="s" placeholder="Search" value="<?php echo wp_specialchars($s, 1); ?>" >
        <input type="submit" class="btn" name="submit" id="searchsubmit" value="OK">
    </div>
</form>