WordPress.org

Ready to get started?Download WordPress

Forums

Adding "blogroll" and "pages" to my sidebar (2 posts)

  1. plumducky
    Member
    Posted 7 years ago #

    This is my sidebar.php code (below). Could anyone help me please? I don't understand the instructions I find to accomplish adding a "blogroll" and "pages" widget.

    There is a blogroll page (in admin) where I can add names to it, but it doesn't appear when I view the site. In admin, it says my theme is not widget aware when I go to the widgets section.

    My site:

    http://whengoodmendonothing.com

    My sidebar.php code:

    <!-- begin sidebar -->
    <div id="sidebar">
    <div class="bulletin"><!-- begin search -->
    <h5>Search</h5>
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    </div><!-- end search -->

    <div class="bulletin"><!-- begin archies -->
    <h5>Archives</h5>

      <?php wp_get_archives('type=monthly'); ?>

    </div>

    <div class="bulletin"><!-- begin categories list -->
    <h5>Categories</h5>

      <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>

    </div><!-- end categories list -->

    </div><!-- end sidebar -->

  2. moshu
    Member
    Posted 7 years ago #

    In that case you do NOT add "widgets".
    You add code - if you want to customize the sidebar.
    Here are all the template tags that might be used in the sidebar:
    http://codex.wordpress.org/Template_Tags

    Pay attention to these:
    http://codex.wordpress.org/Template_Tags#Links_Manager_tags
    http://codex.wordpress.org/Template_Tags/wp_list_pages
    and a general overview:
    http://codex.wordpress.org/Customizing_Your_Sidebar

Topic Closed

This topic has been closed to new replies.

About this Topic