Viewing 4 replies - 1 through 4 (of 4 total)
  • <?php wp_get_archives('type=postbypost&limit=50'); ?>

    would show you the list of 50 latest entries.

    Thanks for the tip, all i have to do is add that where I want them to show up, for example beneath catagories and place the with no div tags?

    Ah, no, the full block for the sidebar in WordPress 1.2.2 would look something like this
    <li id="archives"><?php _e('Archives:'); ?>
    <ul>
    <?php wp_get_archives('type=monthly&show_post_count=true'); ?>
    </ul>
    </li>

    Depending on which template you’re using (I just modified the default one that ships with WordPress for my blog) your notation might be different to keep up with the template.

    Oops, change that third line to
    <?php wp_get_archives('type=postbypost&limit=50'); ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding Elements to Sidebar’ is closed to new replies.