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:
<?php wp_tag_cloud(); ?>
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:
<?php query_posts('post_type=archive');?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php the_tags('<ul><li>','</li><li>','</li></ul>'); ?> <?php wp_reset_query(); ?> <?php endwhile; else: 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?