title: Wordpress: Show only TOP level categories
body: <p>I am using this bit of code:</p>
  
  <pre><code>$args = array(
    'orderby' =&gt; 'name',
    'hierarchical' =&gt; 1,
    'style' =&gt; 'none',
    'taxonomy' =&gt; 'category',
    'hide_empty' =&gt; 0,
    'depth' =&gt; 1,
    'title_li' =&gt; ''
  );
  
  $categories = get_categories($args);
  </code></pre>
  
  <p>What I am trying to do is to list only top level categories. When I am using this code I am getting all of them not just level one. Can someone help me?</p>