If condition on a tag
Simple question – hopefully a simple answer:
I want to show a different image based on a specific set of tags (in wp ecommerce products entries). This works with categories but I’m not sure how to refine it to tags:
<?php if (wpsc_category_name( $category ) == 'cata') : ?> <img src="blah" /> <?php else : ?> <img src="blah2" /> <?php endif ?>
I see tag_name in the available functions but it doesn’t seem to work?
- The topic ‘If condition on a tag’ is closed to new replies.