title: show categories and subcategories hierarchically custom post
body: <p>I use this code for get all categories and subcategories, this work but not show subcategories hierarchically.</p>
  
  <pre><code>$args = array(
                  'hide_empty'    =&gt; 1,
                  'hierarchical'  =&gt; 1,
                  'pad_counts'    =&gt; false
              );
  
  $categories = get_terms('project_category', $args); 
  echo '&lt;ul&gt;';
              foreach ($categories as $category) {
                  echo '&lt;li class="s"&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="#'. $category-&gt;slug .'" data-filter=".category-'. $category-&gt;slug .'"&gt;'. $category-&gt;name .'&lt;/a&gt; B&lt;/li&gt;';
              }
  echo '&lt;/ul&gt;';
  </code></pre>
  
  <p>I can't use wp_list_categories() because don´t show ul tag and adds some other div</p>
  
  <p>as I can distinguish between categories and subcategories unused wp_list_categories()</p>