Creating an Archive using a Custom Taxonomy

you can add the current term to you query so if its category, tag or custom taxonomy you will get the posts with the current term, try changing this:

query_posts('cat=0&posts_per_page=12&paged='.$paged);

with this:

$term_slug = get_query_var( 'term' );
$taxonomyName = get_query_var( 'taxonomy' );
query_posts(array('posts_per_page' => 12, 'paged' => $paged, $taxonomyName => $term_slug));