WordPress.org

Ready to get started?Download WordPress

Forums

Kindly Widgetize My Sidebar (2 posts)

  1. sarmadhassan
    Member
    Posted 6 years ago #

    I'll be really grateful if you help me widgetize my sidebar

    <div id="sidebar">
    <?php if (is_home() || is_page() || is_single() || is_category() || is_search() || is_archive()){ ?>
    <h5 class="caption">Categories</h5>
    		<ul class="categories">
    			<?php wp_list_cats('sort_column=id&hide_empty=1&exclude=10, 11'); ?>
    		</ul>
    <h5 class="caption">Archives</h5>
    		<ul class="archive">
    			<?php wp_get_archives('type=monthly&show_post_count=true'); ?>
    		</ul>
    <?php } ?>
    </div>
  2. Adam Brown
    Member
    Posted 6 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic