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.
<?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(); ?>