• Hi,
    Im trying to swap between 2 menus depending on if your viwing category 2 + if your viewing a child of category 2 use sidebar2.php else use sidebar.php

    <?php if ( (is_category(2) && !in_category(‘2’)) || !is_category() ) {
    include (TEMPLATEPATH . ‘/sidebar2.php’);
    }else {
    include (TEMPLATEPATH . ‘/sidebar.php’);
    }
    ?>

    i can get it partly to work but it does not care it seems to work randomly.
    also im using Aquarium 1.0 as a base theme.
    link: https://www.yomo-interactive.co.uk
    cheers
    Lee

  • The topic ‘swaping menus depending on which category your on’ is closed to new replies.