WordPress.org

Ready to get started?Download WordPress

Forums

Adding Archives to Template Sidebar (NOT WIDGET) (4 posts)

  1. zOmbiesundaYs
    Member
    Posted 4 years ago #

    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

  2. Peter Boosten
    Member
    Posted 4 years ago #

    have a look at /wp-includes/default-widgets.php how they extract the archives and copy the code you need.

    Peter

  3. zOmbiesundaYs
    Member
    Posted 4 years ago #

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

    Thanks so much!

  4. mihaicoman
    Member
    Posted 4 years ago #

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

    Best regards,
    Coman Mihai

Topic Closed

This topic has been closed to new replies.

About this Topic