I am using the code below to attempt to display a list of tags associated with posts in the category 'html'
<ul>
<?php
query_posts('category_name=bikes');
if (have_posts()) : while (have_posts()) : the_post();
if( get_the_tag_list() ){
echo $posttags = get_the_tag_list('<li>','</li><li>','</li>');
}
endwhile; endif;
wp_reset_query();
?>
</ul>
I am not seeing any results when i run it though, I have checked and there are lots of tags associated with the posts in the category.
Can anyone help?