Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Has anyone made this work? I am searching for a solution for 2 days now, and it won`t work. I have...

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$updates = new WP_Query(array( 'posts_per_page' => 10, 'paged' => $paged, 'post_type' => array('review', 'news') ));

Then i begin the loop...

 while ( $updates->have_posts() ) : $updates->the_post()

bla bla bla

<?php endwhile; ?>
    <nav class="pagination">
        <?php wp_pagenavi( array( 'query' => $updates ) ); ?>
        <?php wp_reset_query();?>

The thing is that pagination works (just because I don`t have a 404 page). The title is Page Not found - but the pagination works as it should. If i add the 404 page, I would just get the error. My website is - just in case you want to see this.

I don`t know what else to do...

share|improve this question
Did you read this? – toscho Apr 22 '13 at 1:24
It`s now live on my website. No change. – Iulian Bozeanu Apr 22 '13 at 1:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.