How to tell WordPress category page to call specific sidebar
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘How to tell WordPress category page to call specific sidebar’ is closed to new replies.