Custom sidebar on posts in a particular category 1 more sidebar ???
-
I’m trying to add a custom sidebar to a custom page template. The custom sidebar shows up, but so does the regular sidebar. I don’t even have a function calling the sidebar in the custom page template so why is it there? Here is the page in question and this is the code from that page:
<?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?> </div> <br class="clear" /> </div> </div> <div id="primary"> <div class="add-box"><?php if(function_exists('dynamic_sidebar') && dynamic_sidebar('obit-sidebar-ad-1')){} ?> </div> <div class="add-box-2"> <?php if(function_exists('dynamic_sidebar') && dynamic_sidebar('obit-sidebar-ad-2')){} ?> </div> <div class="add-box"> <?php if(function_exists('dynamic_sidebar') && dynamic_sidebar('obit-sidebar-ad-3')){} ?> </div> </div> <?php get_footer(); ?>
My other question is, I also need these custom “obit” sidebars on all posts in the obituary category, as opposed to the sidebars on the rest of the site. How do I accomplish this?
Thanks!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Custom sidebar on posts in a particular category 1 more sidebar ???’ is closed to new replies.