Support » Themes and Templates » Adding Archives to Template Sidebar (NOT WIDGET)

  • I’m trying to add a list of post archives to my sidebar without the use of a widget. The sidebar on my theme is CSS heavy and customized to the T.

    I’d also like to add a page with a more expounded on archive list.

    I’ve tried a few plug-ins without any luck. It basically just needs to have a list of

Viewing 3 replies - 1 through 3 (of 3 total)
  • have a look at /wp-includes/default-widgets.php how they extract the archives and copy the code you need.


    Great idea! The code was:
    <?php wp_get_archives(apply_filters('widget_archives_args', array('type' => 'monthly', 'show_post_count' => $c))); ?>

    Thanks so much!

    Thanks a lot pboosten. I found every little think a want in default-widget.php. 😀

    Best regards,
    Coman Mihai

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding Archives to Template Sidebar (NOT WIDGET)’ is closed to new replies.