title: Trying to customize wordpress drop down categories
body: <p>I'm having some problems on how to display the categories that i want in wp_dropdown_categories. </p>
  
  <p>Here is an image of the drop down -</p>
  
  <p><a href="http://i255.photobucket.com/albums/hh140/testament1234/customizeddropdown_zps8d2fe3c7.png" rel="nofollow">http://i255.photobucket.com/albums/hh140/testament1234/customizeddropdown_zps8d2fe3c7.png</a></p>
  
  <p>Here is the code for the dropdown - </p>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;?php wp_dropdown_categories( $args ); ?&gt; 
  </code></pre>
  
  <p><strong>JS:</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var dropdown = document.getElementById("cat");
  function onCatChange() {
      if ( dropdown.options[dropdown.selectedIndex].value &gt; 0 ) {
          location.href = "&lt;?php echo get_option('home');
  ?&gt;/?cat="+dropdown.options[dropdown.selectedIndex].value;
      }
  }
  dropdown.onchange = onCatChange;
  &lt;/script&gt;
  </code></pre>
  
  <p>I tried placing this code in my functions.php and customize it but it doesn't seem to work. </p>
  
  <pre><code>&lt;?php $args = array(
  'show_option_all'    =&gt; '',
  'show_option_none'   =&gt; '',
  'orderby'            =&gt; 'ID', 
  'order'              =&gt; 'ASC',
  'show_count'         =&gt; 0,
  'hide_empty'         =&gt; 1, 
  'child_of'           =&gt; 0,
  'exclude'            =&gt; '',
  'echo'               =&gt; 1,
  'selected'           =&gt; 0,
  'hierarchical'       =&gt; 0, 
  'name'               =&gt; 'cat',
  'id'                 =&gt; '',
  'class'              =&gt; 'postform',
  'depth'              =&gt; 0,
  'tab_index'          =&gt; 0,
  'taxonomy'           =&gt; 'category',
  'hide_if_empty'      =&gt; false,
      'walker'             =&gt; ''
  ); ?&gt;
  </code></pre>