I have a custom post type with tags included as a taxonomy, I am trying to display a list of all the tags that are in the custom post type only. I initially used:
which generates the list of tags with links fine but it shows the tags of the normal posts with it. I tried to query the posts like this:
query_posts( array( 'post_type' => 'archive' ) ); if ( have_posts() ) : while ( have_posts() ) : the_post(); the_tags('<ul><li>','</li><li>','</li></ul>'); wp_reset_query(); endwhile; endif;
but it shows the tags in duplicate loads. e.g if I had the tag as
test, it would say
test and so on.
This is the code that declares the tags
'taxonomies' => array('post_tag')
Does anybody know a way of displaying a list of tags that are specific to my custom post type only?