Support » Fixing WordPress » Navigation problem with different show post

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

    if ($paged == 1) {
    elseif ($paged == 2) {
    else {
       $offsetPost = $paged*9;
    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>
       	<a href='<?php the_permalink(); ?>' class='commentbubble'><?php comments_number('0','1','%'); ?></a>
    <?php /*}*/ endwhile;?>
    <div class="nextprevnav ">
    	<?php if(function_exists('wp_page_numbers')) wp_page_numbers(); ?>

    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.