Using Multiple Loops in Index.php
-
Hi,
I’m editing a theme and I’m having some problems…
I’m using multiple loops in index.php file and on the homepage everything is exactly how I would like it to be displayed:
1. Latest post in a box (Headline)
2. The 8 latest posts (excluding the latest post)But the real problems starts when I go to page 2…
Then I’ll get only the 8 latest posts while I should get more old posts…I assume that that this has something to do with this:
<?php
$page = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
query_posts(“cat=-27,-28&paged=$page&posts_per_page=8&offset=1”); ?>Does anyone have a clue how to get this right?
For a copy of the index.php Click here.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Using Multiple Loops in Index.php’ is closed to new replies.