WordPress.org

Support

Support » Installation » Added code to sidebar but Widgets don’t work

Added code to sidebar but Widgets don’t work

  • 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>

  • The topic ‘Added code to sidebar but Widgets don’t work’ is closed to new replies.
Skip to toolbar