I have a custom post type that has an option to tag that post as part of a 'Topic'. This is set in the taxonomy:
register_taxonomy( 'topic', array('post','blog','shows'), array( 'label' => __('Topics'), 'hierarchical' => true, 'public' => true, 'query_var' => 'topic', 'rewrite' => array('slug' => 'topic') )); }
And I need a way to get a list of all topics in use by the 'Shows' post type, but I cannot figure out how to do this!
I think it would be something like:
<?php $topics = get_query_var( 'topic' ); ?>
but that obviously isn't working. If anyone has suggestions, I would really appreciate it!!!