• Resolved fragmonger

    (@fragmonger)


    I am using a non-widget ready theme, and I’m trying to figure out how to add archives to my sidebar.

    I can get the title of “Archives” to show, but don’t understand how to get the months/links to be listed under the title.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter fragmonger

    (@fragmonger)

    Here is the portion of my sidebar.php that adds ‘Categories’. How can I alter it to add ‘Archives’?

    <h2>
    <?php _e(‘Categories’); ?>
    </h2>

      <?php list_cats(0, ”, ‘name’, ‘asc’, ”, 1, 0, 0, 1, 1, 1, 0,”,”,”,”,”) ?>
    Thread Starter fragmonger

    (@fragmonger)

    I figured it out on my own. For anyone else trying to do this, here’s what I had to add to my sidebar.php:

    <h2><?php _e(‘Archives’); ?></h2>
    <li id=”archives”>

      <?php wp_get_archives(‘type=monthly’); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add ‘Archives’ to Sidebar’ is closed to new replies.