WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP eCommerce] Using Conditional Tags for Menus

[Plugin: WP eCommerce] Using Conditional Tags for Menus

  • I’m trying to pull up a different custom menu for each specific category page that’s being generated from the wpsc-products_page.php template. Here’s the PHP I’m using:

    <?php
    if ( is_page( 'some-id' ) ) {
         wp_nav_menu( array( 'theme_location' => ‘Some-Menu’ ) );
    } else {
    }
    ?>

    How does WP eCommerce store their category page id’s? I went into the database tables and even used the ones assigned there, and no luck. I also tried pulling them in using ‘is_category’, but that also didn’t work. I tested the same piece of code with traditional WP pages and posts, and had no problems.

    Any help would be greatly appreciated. Thanks!

  • The topic ‘[Plugin: WP eCommerce] Using Conditional Tags for Menus’ is closed to new replies.
Skip to toolbar