• I am trying to pull in a styled sidebar specific to the category. I have the following code which works, but it is pulling in BOTH my new sidebar and the default. What am I doing wrong here?

    From category.php

    <?php get_sidebar();
    if ( in_category('39') ) {
    include(TEMPLATEPATH . '/sidebar2.php');
    
    } else {
    include(TEMPLATEPATH . '/sidebar.php');
    
    }
    ?>
    <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
  • Thread Starter Diventare Creative

    (@wms-group)

    I got it! I had to delete the <?php get_sidebar(); since THAT was the line calling in the default sidebar as well. I was telling it to load twice. Silly me 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘How to tell WordPress category page to call specific sidebar’ is closed to new replies.