• Hi,

    I use this code to get the archives to show up in y sidemenu on my blog:

    <div id="archives" class="dbx-box">
            <h3 class="dbx-handle"><?php _e('Archives'); ?></h3>
            <div class="dbx-content">
              <ul>
                <?php wp_get_archives('type=monthly'); ?>
              </ul>
            </div>
          </div>

    I would like to only show the archives of the last 6 months, how do i do this?

    thx

Viewing 3 replies - 1 through 3 (of 3 total)
  • Why is so difficult to read the documentation?
    Template_Tags/wp_get_archives
    see the parameters > limit

    mattfinarelli

    (@mattfinarelli)

    I read the documentation, and applied the “&limit6” to my archives sidebar. It isn’t working at all. Any ideas on that one?…

    MichaelH

    (@michaelh)

    That would be ‘limit=6’ or if used with other arguments ‘&limit=6’.

    If you continue this thread, please paste the line of code with the wp_get_archives. Thanks.

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