• I have the following code at my site for displaying my top stories

    <?php
    if ($paged == 1) {
        query_posts("cat=3&showposts=5&offset=0");
    }
    elseif ($paged == 2) {
        query_posts("cat=3&showposts=9&offset=5");
    }
    else {
       $offsetPost = $paged*9;
       query_posts("cat=3&showposts=9&offset=$offsetPost");
    }
    
    if ( have_posts()) : while (have_posts()) : the_post();
    
    ?>
    <!--Display the top stories-->
    <div class='individual'>
       <a href='<?php the_permalink(); ?>' class='individualimg' style='background: url(<?php echo arras_get_thumbnail($tw, $th); ?>) no-repeat;'><span class='hidden'><p><?php the_title(); ?></p></span></a>
       	<div class='organizer'>
       		<h2 class='title'><?php the_title(); ?></h2>
       		<p class='blurb'><?php echo arras_strip_content(get_the_excerpt(), 25); ?></p>
       	</div>
       	<a href='<?php the_permalink(); ?>' class='commentbubble'><?php comments_number('0','1','%'); ?></a>
    </div>
    <?php /*}*/ endwhile;?>
    
    <div class="nextprevnav ">
    	<?php if(function_exists('wp_page_numbers')) wp_page_numbers(); ?>
     </div>

    On the first page it shows that i have 5 pages to go through, since my showpost is at 5, when i go to the second page, which display 9 post, the navigation shows 3 pages total.

    So what I want to do is have something like query 9 on the first page, but show only the first 5. then put the rest on page 2 and the rest i can manage.

    Is this possible?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Navigation problem with different show post’ is closed to new replies.