Advertisement
Guest User

Theme Code

a guest
May 4th, 2012
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <form method="get" id="searchform" action="<?php echo home_url(); ?>">
  2.     <input type="text" onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'Search...':this.value;" value="Search..." name="s" id="s" />
  3.     <?php
  4.         wp_dropdown_categories(
  5.             array(
  6.                 'child_of' => 15,
  7.                 'id' => 'make',
  8.                 'name' => 'product_cat',
  9.                 'show_option_all' => 'Select Make...',
  10.                 'taxonomy' => 'product_cat',
  11.                 'walker' => new dropdown
  12.             ))
  13.     ?>
  14.     <?php
  15.         wp_dropdown_categories(
  16.             array(
  17.                 'child_of' => 21,
  18.                 'id' => 'model',
  19.                 'name' => 'product_cat',
  20.                 'show_option_all' => 'Select Model...',
  21.                 'taxonomy' => 'product_cat',
  22.                 'walker' => new dropdown
  23.             ))
  24.     ?>
  25.     <input type="submit" id="searchsubmit" value="Search" />
  26. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement