wordpress get_categories function not working
<p>I am trying to retrieve categories from the <code>category</code> taxonomy of the <code>custom post</code> type
By the below codes : </p>

<pre><code>$categories = get_categories(array(
        'type'        =&gt; 'ad_listing',
        'child_of'    =&gt; 0,
        'parent'      =&gt; '',
        'orderby'     =&gt; 'name',
        'order'       =&gt; 'ASC',
        'hide_empty'  =&gt; 1,
        'hierarchical'=&gt; 1,
        'exclude'     =&gt; '',
        'include'     =&gt; '',
        'number'      =&gt; '',
        'taxonomy'    =&gt; 'ad_cat',
        'pad_counts'  =&gt; false 
    ));
    echo"&lt;pre&gt;";
    print_r($categories);
    echo"&lt;/pre&gt;";
</code></pre>

<p>But it is not showing nothing in category though there are 3 categories.
i think i am doing something wrong :(</p>