Support » Themes and Templates » Home Page Navigation (Multiple Loops)

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

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

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Home Page Navigation (Multiple Loops)’ is closed to new replies.