WordPress.org

Ready to get started?Download WordPress

Forums

Added code to sidebar but Widgets don't work (1 post)

  1. samiotis
    Member
    Posted 6 years ago #

    Installed WP 2.5.1
    My theme wasn't widgetized, so i made the recommended changes.
    Do i still need to add some code to function.php in the new WP version?
    If so, where exactly and what exactly? I tried most of what i could and read about 3 times but i still can't get it to work.

    My sidebar markup looks like this now:

    </div>
    <div id="sidebar">

      <?php
      if ( function_exists('register_sidebar') )
      register_sidebar();
      ?>
      <?php wp_list_categories('title_li=<h2>Categories</h2>'); ?>
    • <h2>Archives</h2>
        <?php wp_get_archives('type=monthly&limit=6'); ?>
    • <h2>Meta</h2>
        <?php wp_register(); ?>

      • <?php wp_loginout(); ?>
      • WordPress
      • <?php wp_meta(); ?>

    <?php endif; ?>

    </div>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.