WordPress.org

Ready to get started?Download WordPress

Forums

Home Page Navigation (Multiple Loops) (3 posts)

  1. akipfer
    Member
    Posted 6 years ago #

    I've looked and looked and have no resort but to ask here where - hopefully - some of you geniuses will be able to point me in the right direction.

    Basically I have my index.php page with 2 loops (both being queuried). The first loop is really just 1 post. The 2nd loop is 6 posts (less than the current setting for posts per page of 10 in WordPress options).

    I'm also trying to use navigation to go to page 2, etc. BUT on the subsequent pages (other than home), I'd like to remove the single post loop and just have the default loop of 10 (minus the obvious 7 posts on the original home page for page 2).

    Any help would be greatly appreciated.

  2. akipfer
    Member
    Posted 6 years ago #

    Anyone?

  3. Kafkaesqui

    Posted 6 years ago #

    Not sure how to provide what you are asking for, at least in a complete fashion.

    You can perform a conditional test with is_paged() and decide whether to perform your custom queries or not based on that. But there's no easy way to make sure the previous N posts begin at the point your home page ends unless the posts per page value equals the initial number of posts on your home page.

Topic Closed

This topic has been closed to new replies.

About this Topic