Support » Fixing WordPress » pulling posts from middle of archive

  • Currently my site is setup so that the 4 latest posts appear on the front page. I would like to utilize the wp_get_archives tag to list posts 5 through 10, as previous posts, but am not sure of what parameters to use.

    I know that it should look like this to some extent:

    <?php wp_get_archives(‘type=postbypost&limit=6’); ?>

    Can someone please tell me what parameter I need to include so that it starts from the 5th post.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • anyone?

    Can’t help you with your request, because wp_get_archives() can’t do what you’re asking.

    Instead, look at get_posts(). The ‘offset’ parameter will let you set at what post to start at. Then you can just list each post title as a link (see the examples on the Codex article).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘pulling posts from middle of archive’ is closed to new replies.