WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP e-Commerce] Problem with wpsc_is_in_category conditional tag

[Plugin: WP e-Commerce] Problem with wpsc_is_in_category conditional tag

  • Hi I have a problem with wpsc_is_in_category tag.

    In a sidebar I want to display list of categories depending on the category page the user is on.

    So I have a code like this:

    <?php if (wpsc_is_in_category() ==8) {
    echo 'example 1';
    } elseif (wpsc_is_in_category() == 17)  {
    echo 'example 2';
    } elseif (wpsc_is_in_category() == 17)  {
    echo 'example 3';
    } else {
    }
    ?>

    The tag doesn’t work, all I get on each category page is ‘example 1’ displaying.

    Is there another way to do it?

    http://wordpress.org/extend/plugins/wp-e-commerce/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP e-Commerce] Problem with wpsc_is_in_category conditional tag’ is closed to new replies.