Advertisement
Beee

search form with post type filter

Mar 14th, 2015
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1.         <form role="search" method="get" id="searchform" class="searchform" action="<?php echo $siteurl; ?>">
  2.             <div>
  3.                 <label class="screen-reader-text" for="s">Search</label>
  4.                 <input type="text" id="s" name="s" class="text" onfocus="if(this.value == 'Start typing and hit enter') { this.value = ''; }" value="<?php echo $squery; ?>" />
  5.                 <input type="submit" class="submitbutton button" value="Search" />
  6.                 <input type="radio" name="post_type" value="event"> Events
  7.                 <input type="radio" name="post_type" value="post"> Videos
  8.             </div>
  9.         </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement