unique sidebar help
-
hi everyone!
i’m trying to use this code<?php if ( is_page('encountering-conflict') || $post->post_parent == '194') { ?> <?php include(TEMPLATEPATH.'/sidebar-enc.php');?> <?php } elseif ( is_category()) { ?> <?php include(TEMPLATEPATH.'/sidebar-blog.php');?> <?php } elseif ( is_archive()) { ?> <?php include(TEMPLATEPATH.'/sidebar-blog.php');?> <?php } else { ?> <?php include(TEMPLATEPATH.'/sidebar-alt.php');?> <?php } ?>
the encountering-conflict page works with a unique sidebar, but category and archive sidebars don’t show up?
i’ve tried putting this code in page.php, singlepost.php, even sidebar.php but nothing is working. can anyone help?NB: not sure how to add it into sidebar.php which may be the reason why it’s not working.. this is the code in sidebar.php
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('sidebar-primary') ) : else : ?>
kind regards!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘unique sidebar help’ is closed to new replies.