title: Wordpress wp_dropdown_categories Select repeat problem
body: <p>i have a problem.</p>
  <p>I am listing category A with its subcategories.
  the code is working properly.</p>
  <p>But</p>
  <p>The screen output is as follows:</p>
  <p><a href="https://i.stack.imgur.com/dgoyl.png" rel="nofollow noreferrer">OUTput</a></p>
  <pre><code>&lt;form action=&quot;&lt;?php bloginfo('url'); ?&gt;/&quot; method=&quot;get&quot;&gt;
      &lt;div&gt;
      &lt;?php
          if (is_category())
  {
  $cur_cat = get_query_var('cat');
      if ($cur_cat) 
      {
          
      $select = wp_dropdown_categories('echo=false&amp;child_of=' . $cur_cat . '&amp;depth=1&amp;title_li=&amp;&amp;show_count=1&amp;hide_empty=0');
      $select = preg_replace(&quot;#&lt;select([^&gt;]*)&gt;#&quot;, &quot;&lt;select $1 onchange='return this.form.submit()'&gt;&quot;, $select);
      
          echo $select;
          }
  }
  ?&gt;
  
          &lt;noscript&gt;&lt;div&gt;&lt;input type=&quot;submit&quot; value=&quot;View&quot; /&gt;&lt;/div&gt;&lt;/noscript&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  <p>Why does it repeat twice?</p>
  <p>selected category: guided.</p>
  <p>1- not working
  2- it is working.</p>
  <p>How can I remove the 1st field? How do I prevent recurrence?</p>