Custome # of post on index.php
-
I would like to have a different number of post on the home page then my archive and category pages.
I have found this code
<?php $page_num = $paged; if ($pagenum='') $pagenum =1; query_posts('showposts=7&paged='.$page_num); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> // WordPress loop endwhile;endif; ?>
Everything works great on the main page except when I click on the Older entries link. One the second 3rd page I get a 404 error.
Can some one please explain why I would get a 404 error and what I might do to solve this problem.
Thanks
-Mike
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custome # of post on index.php’ is closed to new replies.