how to get category name if my category got custom slug
<p>so my category got slug 'aeroplanes' and I need to get category names from it, but I can't get it with </p>

<pre><code>$category = get_the_category($post-&gt;ID); 
echo $category[0]-&gt;cat_name;
</code></pre>

<p>cause it takes all posts from default category with category slug 'category'. How can I do that if I got category slug 'aerpolanes'?</p>
