The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. zOmbiesundaYs
    Posted 6 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
    Posted 6 years ago #

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


  3. zOmbiesundaYs
    Posted 6 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
    Posted 6 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