Ready to get started?Download WordPress


Adding elements via sidebar.php template (1 post)

  1. richards1052
    Posted 9 years ago #

    I'm familiar with blogger.com & Typepad templates, but I'm new to WP templates. I want to make sure not to screw things up as I add items like Amazon & Google ads.

    Below, you'll find the beginning of my sidebar template code. If I want to add an item before Archives or before
    Recent Entries (for example) where should they go?


    <div id="sidebar">

    <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>
    <h2><?php /*_e('Archives'); */?></h2>

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

    <h2><?php _e('Archives'); ?></h2>

    <?php wp_list_cats(); ?>
    <h2>Recent Entries</h2>

    <?php $posts =

    foreach ($posts as $post) :



Topic Closed

This topic has been closed to new replies.

About this Topic