WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
Same topic: 404 after first page... (1 post)

  1. nicozz
    Member
    Posted 7 months ago #

    Hi,

    Sorry for posting this topic again, but I can't make it work.
    I also deactivated and reactivated sevral times permalink structure, but I always have a 404 page after first page of my blog...

    Perhaps it's something very stupid but I can't see it...

    Here is my code.
    I hope someone can help.
    Nicolas.

    `
    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
    <?php $wp_query = new WP_Query('post_type=blog&showposts=3&paged='.$paged); ?>

    <?php if ( $wp_query->have_posts() ) : ?>
    <?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
    <!-- my code here -->
    <?php endwhile; // end of the loop. ?>
    <?php endif; ?>

    <?php wp_pagenavi( array( 'query' => $wp_query ) ); ?>
    <?php wp_reset_query(); ?>

    http://wordpress.org/plugins/wp-pagenavi/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.