limit archives in the sidebar

  • keritaff

    #7415

    I am trying to limit the list of monthly archives to three in my sidebar. In my sidebar.php, I have the code

    <div class="sidebar-wrap clearfix">
    <h3><?php _e('Archives', 'graphene'); ?></h3>
    <ul>
    <?php wp_get_archives('type=monthly&limit=3'); ?>
    </ul>
    </div>

    but I am still getting an entire year’s worth of archives. Can someone let me know what I am missing?

    Thanks so much.

Viewing 1 post (of 1 total)

  • You must be logged in to reply to this topic.