Advertisement
Guest User

How to disable the dynamic sidebar on single posts?

a guest
Jun 11th, 2012
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div id="sidebar-left">
  2. <ul class="sidebar_list">
  3. <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(3)) : ?>
  4.  
  5. <li class="widget_categories">
  6. <h6>Categories</h6>
  7. <ul>
  8. <?php wp_list_categories('orderby=name&show_count=1&use_desc_for_title=0&title_li=&depth=1'); ?>
  9. </ul>
  10. </li>
  11.  
  12. <li class="widget_pages">
  13. <h6>Pages</h6>
  14. <ul>
  15. <?php wp_list_pages('orderby=name&title_li=&depth=1'); ?>
  16. </ul>
  17. </li>
  18.  
  19. <li class="widget_archive">
  20. <h6>Archives</h6>
  21. <ul>
  22. <?php wp_get_archives('type=monthly&limit=12&show_post_count=1'); ?>
  23. </ul>
  24. </li>
  25.  
  26. <?php endif; ?>
  27. </ul><!-- SIDEBARLIST END -->
  28. </div><!-- SIDEBAR LEFT END -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement