[Plugin: WP eCommerce] Using Conditional Tags for Menus (1 post)

  1. JRiley21
    Posted 4 years ago #

    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:

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic