Don't like ads? PRO users don't see any ads ;-)
Guest

Theme Code

By: a guest on May 4th, 2012  |  syntax: PHP  |  size: 0.77 KB  |  hits: 161  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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>