Not sure if this is possible, but what Id like to do is have the ability to output/add a class to an anchor tag depending on what tag I choose when creating the post.
My reasoning behind this is to be able to call up different background images via CSS depending on the tag that will be chosen for each specific post.
Here is an example of what Im ive got going already... What Im essentially doing here is showing a featured image from the post and then on hover, a jquery script is called to reveal the anchor tag over the image which contains the background image that Id like to dynamically change depending on the tag chosen.
<ul class="product_list_sm">
<?php $epr_acces = new WP_Query(array('post_type' => 'product', 'productcategory' => 'epr-accessories', 'posts_per_page' => 6, 'orderby' => 'rand', 'paged' => $paged )); ?>
<?php while ($epr_acces->have_posts() ) : $epr_acces->the_post(); ?>
<li>
<a href="<?php the_permalink(); ?>" title="View Item" class="product_view_sm">..View Item..</a>
<?php the_post_thumbnail('prod-img-sm', array('class' => 'single_product_img_sm', 'alt' => 'View Product')); ?>
</li>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</ul><!-- .product_list_sm -->