WordPress.org

Ready to get started?Download WordPress

Forums

Archives Sidebar Widget: Can't limir number of months posted (1 post)

  1. databell96
    Member
    Posted 2 years ago #

    I'm trying to use the Archives widget to display only the past two years of my clients' posts, which span almost five years. I went to the codex and in my sidebar.php I inserted the following for the archives-2 id:

    <?php wp_get_archives('type=monthly&limit=24'); ?>

    Didn't work. It still displays all months. Not the last 24. Is there some other way to do this or an I stuck downloading some plugin?

Topic Closed

This topic has been closed to new replies.

About this Topic