WordPress.org

Ready to get started?Download WordPress

Forums

Can I display a yearly archive in the sidebar? (2 posts)

  1. pcmt
    Member
    Posted 6 years ago #

    wp_get_archives('type=monthly');

    ... displays a list of monthly archives in the sidebar. When I change it to:

    wp_get_archives('type=yearly');

    ... nothing is displayed, even though the blog in question has lots of posts from 2006 and 2007.

    Am I missing something?

  2. pcmt
    Member
    Posted 6 years ago #

    That doesn't seem to work. As an alternative I'm making a category for each year (actually academic years) and want the sidebar to display a list of monthly archives for the current year only. It will have its own category.

    Can this be done?

Topic Closed

This topic has been closed to new replies.

About this Topic