WordPress.org

Ready to get started?Download WordPress

Forums

pulling posts from middle of archive (3 posts)

  1. pjay
    Member
    Posted 8 years ago #

    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!

  2. pjay
    Member
    Posted 8 years ago #

    anyone?

  3. Kafkaesqui

    Posted 8 years ago #

    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).

Topic Closed

This topic has been closed to new replies.

About this Topic