I've got a problem with pagination for a category.

My template is category-30.php. So just for displaying this category.

When I got to /page/2 I get a page with the title "Nothing from for Backstage Page 2".

How do I get this working.. any help appreciated!

Here is my code..

<?php
get_header()
?>
<body>
 <div id="container">
<?php get_sidebar() ?>
<div class="span-4">

    <h1><?php single_cat_title() ?></h1>

            <div class="col-1 cat-desc">
                <?php echo category_description(); ?>
            </div>

    <?php $count = 0;   
   $queryvars = array(
    'cat' => 30,
    'posts_per_page' => 10,
    'paged' => $paged
);

$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query( $queryvars );
 ?>
    <?php if ($wp_query->have_posts()): while ($wp_query->have_posts()): $wp_query->the_post() ?>

                <?php if($count%2 == 0): ?>
                    <div class="post backstage col-1">
            <?php the_content() ?>
                        <p><?php the_title() ?></p>
          </div>
                <?php else: ?>
                    <div class="post backstage col-2">
            <?php the_content() ?>
                        <p><?php the_title() ?></p>
          </div>
                <?php endif;  
                $count++; ?>


    <?php endwhile; endif ?>

            <?php if(function_exists('wp_paginate')) {
                wp_paginate();
            } ?>

    <?php $wp_query = null; $wp_query = $temp; ?>

</div>

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.