Well, I’m using my own taxonomy for custom post type. It looks like this:
register_taxonomy("our_gallery", array("gallery"), array("hierarchical" => true, "label" => "Types", "singular_label" => "Type", "rewrite" => true));
I have created a few “types”/categories in my admin panel like “Black and white”, “Landscapes” and so forth…
Anyways I can’t figure out how to get these categories out? I mean – display them on my gallery page just next to gallery items?
I’ve tried:
<?php $cat = get_the_category();
var_dump($cat); ?>
And it displays an empty array – “array(0) { }”. How to get access to my own categories? get_the_category(‘our gallery’) and (‘gallery’) also gives an empty array…
Thanks a lot 🙂