Support » Fixing WordPress » Pagination Bar

Viewing 2 replies - 1 through 2 (of 2 total)
  • You could do a simple $x count.

    Use something like $x = 0;

    <?php $x = 0; while have_posts() : the_post() 
    
     ...
    $x++;
    endwhile; ?>

    then

    <?php if ($x>9) { ?>
    Navigation bar code here
    <?php } ?>

    That should work how you want it to.

    Thread Starter revlimiter

    (@revlimiter)

    hey chad,
    thanks for the code! i actually managed to get it to work using $postnum instead of $x

    <?php if ($postnum>9) { ?>
    <?php include (TEMPLATEPATH . '/navigation.php'); ?>
    <?php } ?>

    cheers,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pagination Bar’ is closed to new replies.