Support » Plugin: WP-PageNavi » [Plugin: WP-PageNavi] PageNavi Shows 404 Error

  • [ Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use the pastebin ]


    There is a bug in my code, while applying pagination.
    I used to fix it with available resources in Googling…
    But the bug will remains the same.

    I use the category-project.php page for this one.
    I just add my Code here: Any one can help me.

                $paged = get_query_var( 'page' ) ? get_query_var( 'page' ) : 1;
                $args = array(
                'post_type' => 'post',
                'posts_per_page' => 2,
                'cat' => 6,
                'paged' => $paged,
                'caller_get_posts'=> 1
                query_posts( $args );
                $loop = new WP_Query($args);
                while ($loop->have_posts()) : $loop->the_post();
                <div class="multi-project">
                <div class="multi-project-img"> <a>">
                <img src=" <?php echo catch_that_image()?>" width="120" height="80" />
                </a> </div>
                <div class="multi-project-meta">
                <div class="head"><a>">
                <?php the_title()?>
                <div class="desc">
                <?php  content_limit(200); ?>

    Client :

    <?php the_field('client'); ?>

    Location :

    <?php the_field('location'); ?>
                <!-- .project-meta -->
                <?php endwhile; ?><!--end custom loop-->
                <div id="pagination">
                { wp_pagenavi( array( 'query' =>$loop )); 

    Thanks in Advance.

  • The topic ‘[Plugin: WP-PageNavi] PageNavi Shows 404 Error’ is closed to new replies.