• 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?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘If condition on a tag’ is closed to new replies.