WordPress.org

Ready to get started?Download WordPress

Forums

WP e-Commerce (2 posts)

  1. dompl
    Member
    Posted 2 years ago #

    Hi there.

    I'm using latest version of WP e-Commerce on WP 3.3.1

    What im trying to do is show some stuff on my sidebar only for shop pages.

    Therefor I'm looking for conditional statement similar to the following one but that will work :)

    if (shop) {"do it"} else {dont}

    Any help much appreciated.

    Thank you in advance.

    Dom

  2. dompl
    Member
    Posted 2 years ago #

    Got the ansewer myself:

    If not product page:

    <?php if ('wpsc-product' != get_post_type())  { ?>
             do stuff
    <?php }?>
    If product page:
    <?php if ('wpsc-product' == get_post_type())  { ?>
             do stuff
    <?php }?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.