Support » Fixing WordPress » Limit Archive Links in Sidebar

  • Hi

    Is it possible to limit the amount of links shown under archive to say 6 months. The months should be shown as current. So for example if the months now are (latest first) June, May, April, March, February, January, in July, Jan would fall away and July would take June’s position.


Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi


    Forum Moderator

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

    This doesn’t seem to work when a Widget is used to display the months.
    sidebar.php is overruled somehow.

    In what file should I change this code?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Limit Archive Links in Sidebar’ is closed to new replies.